Advertisements
Advertisements
प्रश्न
Can a class be referred to as user defined data type? Comment.
लघु उत्तर
उत्तर
- 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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?