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
Do you know about latest advancements in C++ ?
why is c++ called oops? Explain
What are advantages of using friend classes?
What are arithmetic operators?
Which function should be used to free the memory allocated by calloc()?
A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.
Explain virtual class?
What is #include cstdlib in c++?
What will the line of code below print out and why?
What is auto type c++?
Can we distribute function templates and class templates in object libraries?
What is the use of ::(scope resolution operator)?
What's the most powerful programming language?
Write about the use of the virtual destructor?
Is c++ the hardest programming language?