ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
difference between overloading and overridding
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: difference between overloading and overridding
Answer
# 1
In overloading functions will have same name but different
signatures(type of parameters,number of parameters etc..).
but in overloading functions must have same name and signature.
 
Is This Answer Correct ?    2 Yes 0 No
Sanish Joseph
 
  Re: difference between overloading and overridding
Answer
# 2
in overloading  methods can have the same name but must 
have different parameter lists i.e signature

while in overriding if you declare a field in a subclass 
with the same name as one in the superclass, the superclass 
field can only be accessed using super or the superclasses 
type
 
Is This Answer Correct ?    1 Yes 1 No
Preeti
 
 
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
difference between overloading and overridding  2
wht is major diff b/w c and c++?  3
What is the difference between declaration and definition?  6
What are virtual functions?  2
What is Method overloading?  4
WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE  1
What is the difference between pass by reference and pass by value? TCS6
features of OOPS Ness-Technologies5
We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ball with only 3 possible weighing attempts? IBM3
What is a linked list? IBM4
In which Scenario you will go for Interface or Abstract Class?  1
When is a memory allocated to a class?  3
Can we have a private virtual method ? Ness-Technologies5
the difference between new and malloc Siemens3
Why and when is a virtual destructor needed?  2
what is object slicing? Wipro4
What is function overloading and operator overloading?  2
Please tell me the oops concept with detailed answer EEE4
What are the different forms of polymorphism?? PCS5
what is the function of 'this' operator ?  5
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com