Tuesday, December 27, 2011

Difference between virtual and abstract method


Abstract :
An abstract method has no implementation and a subclass has to implement it (if it is not an abstract class).


Virtual: 
But a virtual method has an implementation and a subclass does not have to implement it again (but can replace the original implementation).

No comments: