answersLogoWhite

0


Best Answer

an array is a collection of similar elements. abstract data type is a mathematical model which contains a class of data types that have similar behaviour.

so array is an abstract data type.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

An abstract data type (ADT) is any class that has one or more pure-virtual methods. ADTs are intended to describe a common interface to all of its derivatives, not to implement that interface. Even if it actually has a full implementation or definition, the fact that it has at least one pure-virtual method means it cannot be instantiated in its own right -- it is a conceptual object for which the entire reason for being is to derive objects with a common interface, to create collections of those objects without regard to their actual type. Only a fully-implemented derivative can actually be instantiated, otherwise it, too, becomes abstract.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why class is called abstract data type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is true about true about abstract data type Object of an abstract class type cant be created. We can derive classes from these abstract classes Object of an abstract class t?

True - an instance of an abstract class cannot be created. False - derive (subclass) from a class, not the object (the instance).


What is called representation of data structure in memory?

"Abstract Data Type"


What is the type of class for which objects can not be created except the static member?

Abstract data types or abstract base classes.


What is an abstract data structure?

Abstract Data Type in computing is a set of data along with a set of predefined operations.The actual data inside the ADT is protected from direct manipulation. The exposed operations is the only way to manipulate the data.In easier terms, it is very much like (though not limited) to the objects in object oriented programming.


Can you use objects in class level declaration?

Objects are classes... It's the most abstract type of data.


Is built-in data-type are abstract data-types in java?

All built-in data types are not abstract data types.


What is the type of class for which objects can not be created?

Abstract class.


What is difference between interface and abstract class?

All the methods declared inside an Interface are abstract. Where as abstract class must have at least one abstract method and others may be concrete or abstract. In Interface we need not use the keyword abstract for the methods.


What is the difference between data structure and abstract data type?

An Abstract Data Type is an interface that interacts with a data structure. A Data Structure is an implementation of the ADT. for example. If you were going to create a linked list you would create an Interface listing all the methods required by the list. Then in the linked list class you would code how the list uses these methods. Hope this helps :)


What is an interface class and what is an abstract class?

The term interface class does not exist in C#. If this is a term describing a class being an interface to other component (human, subsystems, etc), it is very application specific. The designer of that application should know the abstraction.However, C# does have another type called interface. An interface is NOT a class. An interface defines the intention of some behaviors that classes may be extended it and provides the implementation. The intention, is nothing but method signatures, which defines the return data type, the method name, and any method arguments and associated data type. The implementation is the code of the method. Interface is used for separating the concern of design and implementation.Abstract class is a class with abstract keyword. It can be just like a class without that keyword (then, why it is an abstract class?). But it may have some methods or properties defined as abstract. These abstract methods, like the method signatures of an interface, defines the intention.The subclasses of such an abstract class would need to implement those abstract methods (providing the code).There are more common, differences between interfaces and abstract classes, please see answer(s) of those related questions in C# category.


If you type a paper for a class and save it on the hard drive it is called a data file?

yes


What is abstract data type in c plus plus?

Abstract data types are the opposite of a concrete data types. An abstract data type is one that does not contain all of the function code necessary to create an instance of the object. This design allows subclasses to implement the abstract functions while inheriting the non-abstract functions of the class. A pointer to an abstract instance can call all the abstract functions of that object, which will defer their execution to the actual concrete data type's implementation of that function. As a simple example, an abstract class ChessPiece might have a function called move(). A Pawn subclass would behave differently than a Queen would, but both could be called by outside code without knowing (or caring) about what type of ChessPiece is moving.CorrectionAbstract classes can provide a full and complete (if generic) implementation for all of their pure-virtual functions. It is not the lack of a complete implementation that renders them abstract, but the fact the methods were declared pure-virtual and therefore cannot be inherited. However, derived classes can still call those implementations from within their own implementations.Furthermore, derived classes that do not provide implementations for all the pure-virtual methods become abstract base classes themselves. But the pure-virtual methods that they do implement can then be inherited through multi-level inheritance.Non-inheritance of pure-virtual methods only applies to the class that initially declared the method as pure-virtual. Provided an implementation is declared protected or public within a derived class, that implementation can then be inherited by a concrete class, or it can be overridden if required.