Placement Assistance Question:

Explain Overloading?

Tweet Share WhatsApp

Answer:

Overloading happens when two or more function have the same function name but different return type and parameter.

eg: int sum(int a,int b);
int sum(int a,int b,int c);
The overloading happens in the same class i,e these function should be in the same class.

Download Placement Assistance PDF Read All 29 Placement Assistance Questions
Previous QuestionNext Question
How to measure 4 liters of water using a 3 liter and a 5 liter jug?Explain Overriding?