Lecture overview -- Keyboard shortcut: 'u'  Previous page: Interfaces [Section] -- Keyboard shortcut: 'p'  Next page: Interfaces in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 11 : 37
Object-oriented Programming in C#
Abstract classes, Interfaces, and Patterns
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

/user/normark/oop-csharp-1/sources/c-sharp/interfaces/car-house/classes.csSketches of the classes Vehicle, FixedProperty, Bus, and House - for the exercise.


Go to exerciseThe interface ITaxable