Standard Template Library (STL) Question:
Explain method overloading?
![Standard Template Library (STL) Interview Answer Standard Template Library (STL) Interview Question](/public/images/interview/24.webp)
Answers:
Answer #1
Method overloading is to overload methods using same class
name by writing different parameters.This is called Method
Overloading.
Method overloading is to overload methods using same class
name by writing different parameters.This is called Method
Overloading.
Answer #2
The methods which have same name, but different parameters. And return type not considered for overloading. Different parameters means number of parameters and types of parameters
The methods which have same name, but different parameters. And return type not considered for overloading. Different parameters means number of parameters and types of parameters
Previous Question | Next Question |
What are you now programming Languages C+? | What is sorted linked list? |