Object Oriented Programming in C++

📖 Definition:

Changing one data type into another.

📌 Types:

  • Implicit (automatic)
  • Explicit (manual)
 
int a = 5;
float b = (float)a;
 

🧪 Exercise:

  • Convert float to int and print