DEV Community

zubair saif
zubair saif

Posted on

Answer: Difference between virtual and abstract methods [duplicate]

Abstract Method:

  • If an abstract method is defined in a class, then the class should declare as an abstract class.

  • An abstract method should contain only method definition, should not Contain the method body/implementation.

  • An abstract method must be over ride in the derived class.

Virtual Method:

  • Virtual methods can…

Top comments (0)