New Video: Understanding C# Interfaces & Polymorphic Behavior

The next video in a series that I filmed at Interface Technical Training covering C# fundamentals has been released. In the previous video I talked about getting started with interfaces and discussed how you can define interfaces and implement them. In this video I discuss how interfaces can be used to add polymorphic behavior into applications.

In a nutshell, polymorphism occurs when a set of objects exhibit the same behavior, but the way they perform the behavior is different. For example, Report and Map objects may both print using a Print() method. However, the way they print may be different - the Report may print to a regular printer whereas a Map may print to a plotter.

Click the image below to view the video and see a complete transcript of the recording including screenshots.

 

Understanding C# Interfaces & Polymorphic Behavior

interfaces-poly

comments powered by Disqus

No Comments