Abstract classes, Interfaces, and Patterns
- slide 11 : 37
Interfaces
An interface corresponds to a fully abstract class. No matters of substance is found in the interface, just declarations of intent
An
interface
describes signatures of operations, but it does not implement any of them
Interfaces
Classes and structs can implement one or more interfaces
An interface can be used as a type, just like classes
Variables and parameters can be declared of interface types
Interfaces can be organized in multiple inheritance hierarchies
Sketches of the classes Vehicle, FixedProperty, Bus, and House - for the exercise.
The interface ITaxable