What is abstract class?

What is abstract class?

- Abstract classes are mainly used in inheritance and cannot be instantiated. They are used as base classes and contain at least one pure virtual function.
- Example :
class AB
{
   public:
   virtual void f() = 0;
};

What is abstract class?

- A class whose object can't be created is abstract class. You can create a class as abstract by declaring one or more virtual functions to pure.
- Pure virtual functions are declared as below :
virtual void show() = 0 ;
Vector vs. Map
Vector vs. Map - In a vector, all the elements are in a sequence...
object oriented language(OOPS) elements - List the elements of an object oriented language
object oriented language(OOPS) elements - Elements of an object oriented language, characteristics of Object Oriented programming language, basic Concepts used in the Object-Oriented Programming language.
C++ constructors & destructors related inteview questions and answers
C++ constructors and destructors - Explain the use of Constructors, Explain the use of Destructors, Explain constructors and destructors, What are constructors?, What is a destructor?
Post your comment