1.

The using declaration __________(a) Doesn’t carry over the default values(b) Carries over the known default arguments(c) Carries over only the normal arguments(d) Carries over only few default argumentsI got this question during an interview.Asked question is from Default Arguments topic in chapter Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming

Answer»

Right choice is (B) Carries over the known DEFAULT arguments

The EXPLANATION is: The using-declaration carries over all the known default arguments. This is a common FEATURE as the usage doesn’t gets affected even if the default arguments are added. This comes under FLEXIBLE programming.



Discussion

No Comment Found

Related InterviewSolutions