answersLogoWhite

0


Best Answer

A class is known as a composite data type because it binds both member variable and functions as a single identity.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why is a class known as composite data type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is composite data type in c?

Composite datatypes are the datatypes which can be constructed with in a program by using prmitive datatypes and other composite types.the act of constructing a composite data type is called composition..............


Is button a data type in Java?

In Java, just about anything is defined as a class; a class is a data type, so yes.


In java difference between classes and object in tabluar form?

A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.


Why cannot initialize data member within class?

A class is a type. Classes don't do anything except define the type. You have to instantiate an object of the type in order to actually do anything, including initialising data members. However, the class can define how a data member is initialised. The most efficient method of initialising class members if via the class constructor initialisation list.


A member function that allow the user of the class to change the value in a data member is known as?

I presume you mean C++, rather than C.That type of function is known as a mutator function.

Related questions

What is primitive and composite data types in DBMS?

a composite data type is any data type which can be constructed in a program using its programming language's primitive data types and other composite types. The act of constructing a composite type is known as composition.


What is composite data type in c?

Composite datatypes are the datatypes which can be constructed with in a program by using prmitive datatypes and other composite types.the act of constructing a composite data type is called composition..............


What is also known as stratovolcanoes?

The type of volcano is a composite volcano.


Is button a data type in Java?

In Java, just about anything is defined as a class; a class is a data type, so yes.


In java difference between classes and object in tabluar form?

A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.


What type of volcano is Eyjafjallajökull in iceland?

It is a composite type, also known as the stratovolcano type.


What is composite data type in plsql?

Composite types have internal components that can be manipulated individually, such as the elements of an array, record, or table.Oracle TimesTen In-Memory supports the following composite data types:Associative array (index-by table)Nested tableVarrayRecord


Which are NOT a distinguishing characteristic of class as a data type?

Test


What is data type of class in oops?

user defined


Why cannot initialize data member within class?

A class is a type. Classes don't do anything except define the type. You have to instantiate an object of the type in order to actually do anything, including initialising data members. However, the class can define how a data member is initialised. The most efficient method of initialising class members if via the class constructor initialisation list.


What is meant by class in java?

class is an important element of an oop. class is a user defind data type.


Which is the wrapper class for the data type float?

The wrapper class for float is Float. java.lang.