In expressions when there are constants or variables of different types (built-in), one or more types are converted to a destination type. Similarly, user-defined types like classes when used in expressions can also be converted to built-in types or vice versa. Following are the different possibilities of type conversion: Conversion from basic type to class type Conversion from class type to basic type Conversion from one class type to another class type Conversion from basic type to class type A value or variable of a basic type or built-in type can be converted to a class member type
The post How to convert primitive type to a class type in Programming appeared first on Coding Security.
How to convert primitive type to a class type in Programming
read more
Tidak ada komentar:
Posting Komentar