↑ Grab this Headline Animator

Friday, October 3, 2008

What are Virtual Methods?

Virtual method has an implementation & provide the derived class with the option of overriding it

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

When an abstract class inherits a virtual method from a base class, the abstract class can override the virtual method with an abstract method

If a virtual method is declared abstract, it is still virtual to any class inheriting from the abstract class

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.


Latest Articles