Interfaces Extending Classes
Learn how to derive an interface from a class definition and how to implement the derived interface in a class.
We'll cover the following
Deriving an interface from a class definition
An interface defines a set of methods or properties that a class must implement, while a class definition outlines the blueprint for creating objects with specific attributes and behaviors.
On a final note with regard to interface and class definitions, note that an interface can derive from a class definition, as can be seen in the following example:
Get hands-on with 1200+ tech skills courses.