| November 11, 2006 02:54:24 |
#10 |
| Udhaya Kumar.D |
Member Since: Visitor Total Comments: N/A |
RE: Describe the principles of OOPS |
| Abstraction: An abstract class is a parent class that allows inheritance but can never be instantiated. Abstract classes contain one or more abstract methods that do not have implementation. These abstract methods can be defined in the derived class. Example :public abstract class Parent{ public abstract void add();}public class child : Parent{ public override void add() { }}And not like this:public abstract class Parent{ public abstract void add() { }}public class child : Parent{ public override void add() { }} |
| |