Answer Posted / rohit sah
An Abstract Base Class is a class that is not intended to be instantiated itself. Rather, it is intended strictly for use as a base for other classes. To prevent instantiation, an ABC will typically contain at least one pure virtual function.
The point of an ABC is to separate the interface of a group of classes from the implementation of the functions that make up the interface. This allows other code to ignore differences in how these functions are carried out. An ABC creates a contract between its descendants and any other code that uses them. The descendants must implement a certain set of functions. Code that uses them must use those functions to access whatever it is the object involved represents.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Mention the ways in which parameterized can be invoked. Give an example of each.
What is a manipulator in c++?
Why is c++ is better than c?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What is a dynamic binding in c++?
What is an accessor in c++?
What is pointer to member?
What is microsoft c++ redistributable?
Why use of template is better than a base class?
Is it possible to have a recursive inline function in c++?
Why is it necessary to use a reference in the argument to the copy constructor?
Why c++ is better than c language?
Does c++ have finally?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
How long it will take to learn c++?