Diversities between an abstract method & virtual method ?

 Posted by Pardhu2020 on 2/18/2014 | Category: C# Interview questions | Views: 808 | Points: 40
Answer:

An Abstract method does not provide an implementation and forces overriding to the deriving class (unless the deriving class also an abstract class), where as the virtual method has an implementation and leaves an option to override it in the deriving class. Thus Virtual method has an implementation & provides the derived class with the option of overriding it.

Abstract method does not provide an implementation & forces the derived class to override the method.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response