Abstract:
An abstract is a return Type.It must be a extended or sub class.a abstract class contain static data.Any class with an abstract method is automatically abstract itself .
Syntax : abstract class class_Name
{
// Body
}
Rules :
- Abstract classes are not Interface.
- An abstract class must have an abstarct method.
- Abstract classes can have constructors,member variables and normal methods.
- Abstract class Never instatiated.
- When you extend abstarct class with abstarct method,you must define the abstract method in the child class.
thanks for this post, keep it up for updating us, i am waiting for ur new article.
ReplyDeleteIPL 2015 Cricket live score
mps computers
Harjinder Singh
thanks again