In C++ please explain Abstract Data Type? Please give some examples.
In C++, we define an Abstract Data Type as a type of variable or it can also be class for those objects whose functioning and behavior are determined or defined by some values or operations. Different operations can be performed but the underlying functionalities is not known to the user and hence the name Abstract. Examples of Abstract data type are Stack, List, Queue. Suppose the function push(x) is known to the user that it will push an element to the stack but the underlying principle behind is not known as to how the operation is performed.
Get Answers For Free
Most questions answered within 1 hours.