1 2 3 4 5 6 7 |
Both virtual and abtract classes allow you to extend the class (i.e. create child classes that inherit non-private methods and variables) Both virtual and abstract classes can contain virtual methods (virtual methods can have a default implementation that is inherited by child classes, whereas abstract methods can only be signatures, and must be implemented in child classes) Only abstract classes may contain abstract methods |