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
What is the c++ code?
Ask to write virtual base class code?
In the derived class, which data member of the base class are visible?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
Do you know the use of vtable?
What is iterator in c++?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
What are member functions used in c++?
Out of fgets() and gets() which function is safe to use?
Can a Structure contain a Pointer to itself?
Is facebook written in c++?
How would you use qsort() function to sort an array of structures?
How do you add an element to a set in c++?
Is c++ the best programming language?
Write a function to find the nth item from the end of a linked list in a single pass.