explain how to convert one class type to another class type with example
Answers
Answered by
1
Class to Class Conversion
- Here the assignment will be done by converting “comp” object which is of class type into the “mob” which is another class data type.
- Conversion from one class to another class can be performed either by using the constructor or type conversion function.
@MissTranquillity
Answered by
2
Class to class conversion
- Conversion from one class to another class can be performed either by using the constructor or type conversion function.
Similar questions
English,
2 months ago
Math,
2 months ago
English,
2 months ago
Physics,
4 months ago
Accountancy,
4 months ago
Social Sciences,
10 months ago
Math,
10 months ago