Abstract usage in C#

Can any one give real time example for abstract class and virtual function plz in c#(.NET)

Questions by raghavendra1267

Showing Answers 1 - 3 of 3 Answers

cse.jai

  • Jan 20th, 2012
 

An abstract class is a class that cannot be instantiated. The purpose of an abstract class is to provide a common definition of a base class that multiple derived classes can share. For example, a class library may define an abstract class that is used as a parameter to many of its functions, and require programmers using that library to provide their own implementation of the class by creating a derived class.

Virtual methods and properties enable derived classes to extend a base class without needing to use the base class implementation of a method. For more information check this link http://msdn.microsoft.com/en-us/library/6fawty39.aspx

Source: msdn

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions