Diversities between an abstract method & virtual method ?

 Posted by Puneet20884 on 1/5/2010 | Category: OOPS Interview questions | Views: 6759
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.


Source: Internet | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response