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 rooted hierarchy?
Is it possible to write a c++ template to check for a function's existence?
What kind of jobs can I get with c++?
What is null pointer and void pointer?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
When we use Abstract Class and when we use Interface?where we will implement in real time?
Explain the use of virtual destructor?
What are the methods of exporting a function from a dll?
Specify different types of decision control statements?
What is the use of function pointer?
Which is the best c++ compiler?
What is purpose of abstract class?
Why was c++ made?
What are the extraction and insertion operators in c++? Explain with examples.
What is string in c++ programming?