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 is flag in computer?

0 Answers  


Write the program form Armstrong no in c++?

11 Answers   HCL,


Explain the volatile and mutable keywords.

0 Answers  


What is an associative container in c++?

0 Answers  


How does c++ sort work?

0 Answers  






What does it mean to declare a member variable as static?

0 Answers  


What is a unnitialised pointer?

0 Answers  


What is the basic of c++?

0 Answers  


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

0 Answers  


What is auto used for in c++?

0 Answers  


Why struct is used in c++?

0 Answers  


Is string data type in c++?

0 Answers  


Categories