Which of the following is a user defined data type?
(A) class (B) float (C) int (D) object
Answers
Answered by
3
.the following is a user define data type ...class
Answered by
0
Class is a user-defined data type.
- A class in object-oriented programming is a model for producing objects or instances.
- It also caters to supplying initial data and implementing procedures such as member functions or methods that can interact with the data. It functions as an object's blueprint.
- In order to encapsulate data and behaviour into a single unit, classes define the structure and behaviour of objects.
- Through the creation of classes, a user can develop object-oriented programmes.
- A data type known as a class only allows certain processes to access its data. These procedures govern how a class instance or an object is created, accessed, and then removed when it is no longer required.
#SPJ3
Similar questions
History,
2 months ago
English,
2 months ago
English,
2 months ago
English,
5 months ago
Business Studies,
10 months ago
Math,
10 months ago
Computer Science,
10 months ago