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 the use of lambda in c++?

0 Answers  


What does flush do?

0 Answers  


When do you call copy constructors?

0 Answers  


What is an iterator?

0 Answers  


Write is a binary search tree? Write an algo and tell complexity?

0 Answers   Axtria,






Q1 On the screen how do you write the following words? she sells seashells by the seashore (a) all in one line (b) in three lines Q2 Write a program that asks interactively the user’s name and age and responds with Hello name, next year you will be next_age. where next_age is age + 1 Q3 For the different values of n, what is the output? printf(“%x %c %o %d”,n,n,n,n); (a) n = 67 (b) n = 20 (c) n = 128 (d) n = 255 (e) n = 100 Q4 What will be the output of the following program? int main() { char a,b,c; scanf(“%c %c %c”,&a,&b,&c); printf(“a=%c b=%c c=%c”,a,b,c); return 0; } [Note: The user input is:ABC DEF GHI]

1 Answers  


What are the popular tools used to detect memory leaks in c++

4 Answers   TATA,


What is volatile and pragma? When they are used?

1 Answers  


Define a nested class. Explain how it can be useful.

0 Answers  


What is the arrow operator in c++?

0 Answers  


write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1

5 Answers  


What is the protected keyword used for?

0 Answers  


Categories