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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?