OOPs Concepts
Programming and Technical
Programming
Definition
What is an abstract class?
Read Solution (Total 2)
-
- Abstract class is a class which contain at least one pure virtual function. Abstract class are used to provide an interface for its subclasses
- 8 years agoHelpfull: Yes(0) No(0)
- In C++, an abstract class is one containing at least one pure virtual function. An abstract class cannot be instantiated and it is alternately called a pure virtual class.
An abstract class is a class which can only be used as a super-class for derived classes. It just cannot be instantiated, meaning an object cannot be created out of the super-class declaration.
An abstract class establishes the layout of the virtual function table otherwise known as the v-table.
Classes derived from an abstract class must declare the pure virtual function using the same return type, same function name and signature. The function definition must exist within the derived class. - 6 years agoHelpfull: Yes(0) No(0)
OOPs Concepts Other Question