GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  C++
Go To First  |  Previous Question  |  Next Question 
 C++  |  Question 169 of 208    Print  
Overloading and Overriding
Which of the following statements about overloading/overriding is FALSE?
A. Overloading is a method that allows the definition of multiple member functions with the same name but different signatures.
B. When functions are overloaded, the compiler will pick the correct function based on the signature.
C. Overriding is a method that allows the derived class to redefine the behavior of member functions which the derived class inherits from a base class.
D. Polymorphism is implemented through Overloading.



  
Total Answers and Comments: 3 Last Update: November 01, 2009     Asked by: prettyfox 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Kaushik_khatua
 
The last statement(Option D) might be assumed to be wrong by someone who is considering only a specific type of polymorphism - Override polymorphism.

Usually in an object oriented design approach, polymorphism is implemented by Overriding the member functions, but even same function names with different signatures qualify as polymorphic and this type of overload driven polymorphism is called Ad-Hoc Polymorphism.

Above answer was rated as good by the following members:
APatel2004
July 22, 2008 07:18:48   
Kaushik_khatua Member Since: July 2008   Contribution: 3    

RE: Overloading and Overriding
The last statement(Option D) might be assumed to be wrong by someone who is considering only a specific type of polymorphism - Override polymorphism.

Usually in an object oriented design approach polymorphism is implemented by Overriding the member functions but even same function names with different signatures qualify as polymorphic and this type of overload driven polymorphism is called Ad-Hoc Polymorphism.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 20, 2009 09:11:12   
jtsay Member Since: March 2009   Contribution: 1    

RE: Overloading and Overriding

D


Polymorphism is implemented through inheritance.


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
November 01, 2009 01:55:17   
thumbeti Member Since: November 2009   Contribution: 2    

RE: Overloading and Overriding

D should the wrong.
Run time polymorphism is based on overriding (based on virtuval function).


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape