What is the difference between an abstract method and a virtual method?
Feature Abstract Method Virtual Method
Implementatio
No implementation Has implementation
Must override? Must be overridden Optional to override
Class type Must be in abstract class Can be in any class
Purpose Force derived classes to
implement
Allow derived class to optionally
override