An abstract class is a class for which one or more functions are declared but not defined (have one or more functions pure virtual), meaning that the compiler knows these functions are part of the class, but not what code to execute for that function. These are called abstract functions. Here is an example of an abstract class.
class shape
{
public:
virtual void Calculate() = 0;
};
Concrete class:
A concrete class is an ordinary class that has no pure virtual functions and hence can be instantiated.
Abstract class:
An abstract class is a class for which one or more functions are declared but not defined (have one or more functions pure virtual), meaning that the compiler knows these functions are part of the class, but not what code to execute for that function. These are called abstract functions. Here is an example of an abstract class.
Concrete class:
A concrete class is an ordinary class that has no pure virtual functions and hence can be instantiated.
need an explanation for this answer? contact us directly to get an explanation for this answer