2.3k views

An Abstract Data Type (ADT) is:

1. same as an abstract class
2. a data type that cannot be instantiated
3. a data type for which only the operations defined on it can be used, but none else
4. all of the above
asked in DS | 2.3k views

An abstract data type (ADT) supports only the operations which are defined.

Abstract class is one that may not have definitions of all the objects it have. Moreover it can not be instantiated. To instantiate we have to create a subclass then instantiate the class.

Abstract Data Type is  like data structure  eg. $STACK$ where we have $PUSH()$ $POP()$ operation defined .

Hence, they are not the same thing.

http://www.devx.com/tips/Tip/5681

edited
+1
Thank You. So Answer is C part.
+1
Why not b and c?

ADT of any data structure is "what operation stacks you can perform on this data structure."

for ex:

(1) push()

(2) pop()

(1) enqueue

(2) dequeue

ans c)
D. all of the above
0

@Manali Sikdar can you elaborate your points a little bit about ADT being imstantiatei.As the link provided by you is now no more working.

1
2