How is an Abstract Base Class(ABC) related to an "Abstract
Data Type" (ADT)
Answer Posted / sujith
An ADT is a concept. I agree with that. basic example a
class itself.
But Abstract Base Class is something which has a pure
virtual function in that. That means, u cannot create an
objext of this class. But what is possible is, this class
can be inherited and u can have a pointer of this class and
have runtime polimorphism.
In simple terms, all classes that contain at least one pure
virtual function are abstract base classes.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is a base class?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
How does com provide language transparency?
Is c++ the hardest language?
What is a hashmap c++?
What is the difference between interpreters and compilers?
Why is main function important?
What are vtable and vptr?
What is the syntax for a for loop?
What is this pointer in c++?
Will rust take over c++?
Can you declare an array without a size in c++?
Why is c++ a mid-level programming language?
Is it possible for the objects to read and write themselves?
Define the process of handling in case of destructor failure?