MATLAB Object-Oriented Programming

(Joyce) #1
Create an interface using an abstract class as the superclass. This class defines the
methods and properties that you must implement in the subclasses, but does not provide
an implementation.

The subclasses must provide their own implementation of the abstract members of the
superclass. To create an interface, define methods and properties as abstract using their
Abstract attribute. See “Abstract Classes” on page 12-91 for more information and an
example.

See Also


Related Examples



  • “Design Subclass Constructors” on page 12-9


12 How to Build on Other Classes

Free download pdf