Posted On: Jan 04, 2021
Casting | Conversion |
---|---|
(1) Casting is the process to convert one data type to another data type by using casting operator. | Conversion is process to convert a datatype into another data type automatically by compiler. |
(2) Casting can be applied to compatible data types as well as incompatible data types.. | Conversion can only be applied to compatible datatypes. |
(3) Casting is also known as Type casting. | Conversion is also known as Type Conversion. |
(4) Type casting is done during programming. | Type conversion is done at the compile time. |
Never Miss an Articles from us.
Object-oriented programming (OOP) is a computer programming technique that organizes software design around data, or objects, rather than functions and logic. An object can be defined as a data field ...
Structured Programming can be defined as a programming Approach in which the program is made as a single structure. Lines or blocks of codes are written and executed in a sequential manner such as one...
A class is the most important part of object-oriented programming which is used for the purpose of creating objects. It is defined as the template of similar types of objects consists of a declaration...