164k views
3 votes
Why is a class an excellent representation of an abstract data type?

User Jmerkow
by
7.2k points

1 Answer

3 votes

Answer:

A class is an good representation of the abstract data type as it is represented independently. For implementing a class, it is use to specify the interface for an abstract class.

Class is one of the type of abstract data type for the objects that whose behavior is basically define by the set of operations and values. It is known as abstract as, it provide an implementation independently.

When the class is using in an abstract data type, then it refers as hidden representation of the data. In this modern era, class is use for the implementation of the abstract data type.

User Granth
by
6.6k points