User-defined classes combine the data and methods as integrated components. … Similarly, a user may create a data type and declare certain characteristics and behaviour within it . This can be done by using a class. This is the reason why a class is referred as user defined data type.24 Kas 2018