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


Please Help Members By Posting Answers For Below Questions

Write a program to find the reverse Fibonacci series starting from N.

615


What do you mean by translation unit?

607


What is data type in c++?

561


What are guid?

691


Define token in c++.

716






what are the events occur in intr activated on interrupt vector table

1182


Differences between private, protected and public and give examples.

579


Is c++ low level?

582


Why do we use classes in c++?

581


What is the difference between a baller and a reference in C++?

578


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

648


How much maximum can you allocate in a single call to malloc()?

637


What is increment operator in c++?

564


Write a function to find the nth item from the end of a linked list in a single pass.

571


What is the difference between the functions memmove() and memcpy()?

636