Abstract Class
The purpose
of an abstract class is to provide a common definition of a base class that
multiple derived classes can share. Abstract class cannot be instantiated mean
we cannot able to create an object of an abstract class but can be implemented
to chilled classes like a common base class
Syntax
abstract class shapes
{
//your stuff
}
No comments:
Post a Comment