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;
};
Answer:
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.
Note: We can not be instantiated, abstract class.
need an explanation for this answer? contact us directly to get an explanation for this answer