How is an Abstract Base Class(ABC) related to an "Abstract
Data Type" (ADT)
Answers were Sorted based on User's Feedback
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 |
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 |
What is the use of lambda in c++?
What does flush do?
When do you call copy constructors?
What is an iterator?
Write is a binary search tree? Write an algo and tell complexity?
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]
What are the popular tools used to detect memory leaks in c++
What is volatile and pragma? When they are used?
Define a nested class. Explain how it can be useful.
What is the arrow operator in c++?
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
What is the protected keyword used for?