In object-oriented programming, the ability of the same function name to work with different sets of parameters is called
- A.Inheritance
- B.Encapsulation
- C.Function overloading
- D.Function overriding
Show answer
Overloading means defining several functions of the same name in the same class with different numbers or types of parameters, so the compiler decides which one to call; because the decision is taken before the program runs, it is called compile-time or static polymorphism.
Read the full explanation →