Abstract classes, Interfaces, and Patterns
- slide 7 : 37
Abstract classes and abstract methods in C#
An abstract Stack without data representation, but with some implemented operations
An abstract class Stack - without data representation - with a non-abstract ToggleTop method.
Detailed rules - some are surprising
Abstract classes
can be derived from a non-abstract class
do not need not to have abstract members
can have constructors
Abstract methods
are implicitly virtual
A specialization of Stack
Course and Project classes