C++ | Function Overloading and Default Arguments | Question 5
Which of the following in Object Oriented Programming is supported by Function overloading and default arguments features of C++.
(A) Inheritance
(B) Polymorphism
(C) Encapsulation
(D) None of the above
Answer: (B)
Explanation: Both of the features allow one function name to work for different parameter.
Quiz of this Question
Recommended Posts:
- C++ | Function Overloading and Default Arguments | Question 4
- C++ | Function Overloading and Default Arguments | Question 5
- C++ | Function Overloading and Default Arguments | Question 3
- C++ | Function Overloading and Default Arguments | Question 2
- Default arguments and virtual function
- Templates and Default Arguments
- Some Interesting facts about default arguments in C++
- getopt() function in C to parse command line arguments
- Does C support function overloading?
- Function Overloading and float in C++
- Function overloading and const keyword
- C++ | Operator Overloading | Question 7
- C++ | Operator Overloading | Question 10
- C++ | Operator Overloading | Question 4
- C++ | Operator Overloading | Question 3



