Hi,,plz give me explanation of upcasting and downcasting using reference with examples.
Upcasting is the conversion of data type from lower range data type to higher data type eg: int to long, byte to long, int to double etc.
Downcasting is the casting from a general to a more specific type, i.e. casting down the hierarchy.eg: double to byte, long to int etc.
For more information,
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.