What is an ABC: an "Abstract Base Class"?
Answer / 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 |
What is a class template in c++?
What is rtti in c++?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
How to stop conversions among objects?
What do you mean by “this” pointer?
What is binary object model?
What is runtime polymorphism in c++?
If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number?
Name the operators that cannot be overloaded in C++?
What is the use of string in c++?
How can a called function determine the number of arguments that have been passed to it?
What is c++ in english?