Advertisements
Advertisements
Question
Can a class be referred to as user defined data type? Comment.
Short Answer
Solution
- Users can design their own data types with specific features and behaviour, similar to standard data types such as int, char, and float.
- When a class object is formed, it instantly gets its traits and behaviours.
- The term "user-defined data type" refers to a class constructed by the user by combining primitive data types.
shaalaa.com
Is there an error in this question or solution?