How is an Abstract Base Class(ABC) related to an "Abstract
Data Type" (ADT)

Answers were Sorted based on User's Feedback



How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)..

Answer / 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

How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)..

Answer / guest

An ADT is a concept - the basic idea of a data type that
doesn't specify how the data type is implemented.

An ABC is a method C++ provides for creating an ADT.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C++ General Interview Questions

what are the characteristics of Class Members in C++?

0 Answers  


Carry out conversion of one object of user-defined type to another?

0 Answers  


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

0 Answers  


Give 10 points of differences between C & C++.

0 Answers   HCL,


How is modularity introduced in C++?

0 Answers   TCS,






What are manipulators used for?

0 Answers  


Write a C++ program that asks the user to choose a number between 1 and 1000. Then, your program should be able to guess the number by asking the user no more than 10 yes/no questions. Use a while loop in your program

1 Answers  


Is turbo c++ free?

0 Answers  


Can manipulators fall in love?

0 Answers  


What is lambda in c++?

0 Answers  


Differences between private, protected and public and give examples.

0 Answers  


Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;

2 Answers  


Categories