Computer Science, asked by harshit535978, 4 months ago

explain how to convert one class type to another class type with example

Answers

Answered by Anonymous
1

 \huge \huge \mathtt \red{A} \blue{n} \pink{s} \purple{w} \blue{e} \orange{r}

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 samiyasiddiqui1612
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