| |
GeekInterview.com > Interview Questions > Programming > C++
| Print | |
Question: Default Parameter
Answer: What is default parameter? Can a overloaded function have a default parameter? |
| June 06, 2009 04:53:44 |
#3 |
| amarnathsatrawala |
Member Since: June 2009 Total Comments: 3 |
RE: Default Parameter |
| The overloads may not always be banned. The compiler could remove the parameter with default values for the overload resolution. e.g. The signature of the fuction after removing the default parameters should not match any other fuction signature.
Moreover the definition, may be still be allowed if there is no ambiguous call. The overload resolution may require help from the coder in that circumstance. |
| |
Back To Question | |