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 type library?
Explain the concept of copy constructor?
What is a container class? What are the types of container classes in c++?
When is the last time you coded in C/C++? What is the most lines of original C/C++ code you have personally written in one project? How confident are you in your ability to write C or C++ without a reference?
What does new return if there is insufficient memory to make your new object?
What is lazy initialization in c++?
Define a constructor?
What is an explicit constructor?
What is std namespace in c++?
Can a constructor return a value?
Which software is used for c++ programming?
What is data type in c++?