User Id :    Password :      New Member   Forgot Password  
Topic: What is abstract Class?
Anamika singh
22 Nov 2010 at 11:20 PM

What is abstract Class?

Re: What is abstract Class?
16 Dec 2010 at 04:50 AM

Abstract class is a class that can not be instantiated. To use it you need to inherit it. This class can be used as a base class where you can define certain method that must be implemented in derived class (Class that is going to inherit it) along with that you can also define certain methods that is frequently used and can be directly used by Derived class or overridden in the derived class if needed.
In the abstract class, you can define following:

1.    Normal property - this property is similar to any other property we define in a normal class
2.    Abstract property - this will have only get and set accessor but no implementation.
3.    Normal method - this method is similar to any other method that you define in a normal class
4.    Abstract method - this will not have any implementation
5.    Virtual method - this will have implementation but can also be overridden in the derived class to provide additional logic or        completely replace its logic

Total Replies: 1
Featured Text Ad

Featured Ad