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 |
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Can constructor be static in c++?
What is virtual base class?
There is a magic square matrix in such a way that sum of a column or a row are same like 3 5 2 4 3 3 3 2 5 sum of each column and row is 10. you have to check that matrix is magic matrix or not?
Describe the syntax of single inheritance in C++?
How would you use the functions memcpy(), memset(), memmove()?
What is the use of endl?
Why c++ is faster than java?
What are stacks?
What size is allocated to the union variable?
How to allocate memory dynamically for a reference?
What is the difference between reference and pointer?