Object Oriented Programming in C++

Function Types

  • No parameter, no return
  • With parameter
  • With return value
 
int add(int a, int b) {
return a + b;
}
 

🧪 Exercise:

  • Create a function to find factorial