Saturday, 2 February 2013

Abstract Class


By on 01:10

Abstract Class is the special class which is widely used in java,c sharp(c#) etc.If we want to made abstract class in our program then we declared keyword abstract before class name.Abstract class support the concept of inheritance.

Syntax:-

abstract<Name of Class>
{
.............
.............
.............
}
Functions-1();
Functions-2();
Functions-3();
}

Example (In c #):-

abstract class student
{
public abstract void read();
public abstract void write();
public abstract void show();
}
class student:student
{
........
........
........
}
.
.
.
(SAME AS OTHER CLASS)
.
.
.
class program
{
static void main(......)
{
Object Creation;
Function Calling;
}
}


That's all about Abstract base Classes.If you have any query then leave your comments and don't forgot to follow me on Google+,Facebook,Twitter.

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...