What is user-defined data type?
A user-defined type is a named data type created by the user. It can be a distinct type sharing a common representation with some built-in data type or it can be a structured type which has a sequence of named attributes that each has a type. Thus based on this it can be categorized as:
-Distinct type
-Structured type
-Reference type
-Structured type
-Reference type
Classes vs. Structures
The class is an extension of a structure.
Structure members have public access by default
Class member variables are private by default
Class member variables are private by default

0 Comments:
Post a Comment