C++ Programming - OOPS Concepts - Discussion

Discussion :: OOPS Concepts - General Questions (Q.No.15)


Which of the following is an abstract data type?

[A]. int
[B]. double
[C]. string
[D]. Class

Answer: Option D


No answer description available for this question.

Suman.K said: (May 20, 2012)  
A class is a user defined data type

Priyanka P said: (Jun 12, 2012)  
According to me, abstract data type is always serve as a base for other classes, so these type used for class.

Shrikant Adsule said: (Sep 19, 2012)  
Class is a user defined data type so it does not allowed any memory space, space is allowed only for object.

Bijay said: (Oct 3, 2012)  
As per my understanding! what is use of abstract type, because we are putting some common elements & making a single element for the use of that one.

Sushil said: (Dec 12, 2012)  
An abstract data type is defined as a mathematical model of the data objects that make up a data type as well as the functions that operate on these objects so we can say that class is the abstract data type in other words class contains both data members as well as member function hence class is abstract data type.

Pratiksha said: (Feb 22, 2013)  
What exactly abstract class means?

Xzibit said: (May 17, 2013)  
Abstract class means a class which can not have any object associated with it. But it can be inherited by other classes.

A class is basically said to be abstract class when it has at least one pure virtual function.


class A
virtual Func()=0;

Shubham said: (Jul 19, 2013)  

It says Strings is an abstract data type.

Why isn't strings given as answer then?

Avijit said: (Jul 9, 2015)  
Characteristics of Abstract Class.

1. Abstract class cannot be instantiated, but pointers and references of Abstract class type can be created.

2. Abstract class can have normal functions and variables along with a pure virtual function.

3. Abstract classes are mainly used for Up casting, so that its derived classes can use its interface.

4. Classes inheriting an Abstract Class must implement all pure virtual functions, or else they will become Abstract too.

Smitarani Tandi said: (Jul 29, 2015)  
According to me a class is a pre defined data type so it is an abstract data type.

Pooja said: (Aug 17, 2015)  
According to me abstract means its hides the operation being performed in it. Class functions are abstract to us.

Varun said: (May 19, 2016)  
What is missing here? How the literal meaning of abstract and the class definition together make a new meaning? Please explain clearly.

Priya said: (Jul 15, 2016)  
I can't understand what it meant by abstract data type?

Aishwarya said: (Aug 10, 2016)  
Give a real life example for abstract data type.

Logi said: (Sep 25, 2016)  
An abstract class has no objects.

Ranjith said: (Nov 18, 2016)  
Please describe the abstract data type.

Sanket said: (Apr 16, 2017)  
An Abstract class means class which contains pure virtual function as a pure virtual function is having address zero if we try to create an object for the abstract class there is a chance to call pure virtual function which leads to segmentation fault so the object is restricted for abstract class.

Shubham Sharma said: (Jun 28, 2019)  
Abstract data type and abstract function are different.

Vedi G said: (Dec 7, 2019)  
In a class one pure virtual function is there that is call abstract class.
Pure virtual class means [virtual void add()=0;]

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.