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   SiteMap shows list of All Categories in this site.
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
What is function overloading and operator overloading?
 Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is function overloading and operator overloading?
Answer
# 1
Both function overloading and operator overloading is same 
thing we can reuse the thing. In operator overloading we 
can reuse the operator and user can work through object;
In function overloading we can overloading the same method 
in derived class.
 
Is This Answer Correct ?    0 Yes 2 No
Jha
 
  Re: What is function overloading and operator overloading?
Answer
# 2
function overloading - function name will be same but
operation will be different for eg:
 
  if we take the function as area 
 then  1. area(int x,int y)
       2. area(int x);
        these r the two functions with the same name but 
  they will differ by their arguments given
 for the 1st function 
it becomes the area of the rectangle=x*y
 for the 2nd function it becomes the  area of square=x*x   
 
  
   coming to the operator overloading,
    it is an overloading function of an operator.
    if we + as an operator 
  a+b then + is operator for the operands a,b
  c+d then + is also an poperator for the c,b.
   these r the two properties of polymorphism.
 
Is This Answer Correct ?    2 Yes 0 No
Jerry
 
 
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
Definition of Object Oriented Programming in single line? TCS14
How is exception handling carried out in c++?  1
what is the main difference between c and c++? Microsoft25
What is late bound function call and early bound function call? Differentiate.  2
When is an object created and what is its lifetime? IBM1
What is the difference between pass by reference and pass by value? TCS6
What is an orthogonal base class?  1
In c++ there is only virtual destructors, no constructors. Why?  2
When will a constructor executed?  2
WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT. HCL1
What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?  1
What is virtual constructors/destructors?  3
What is command routing in MFC GE1
what is multithreading in c++ , what is difference between multithreading and singlethreading.  1
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123  1
if u write a class do u write Assignment operator and copy constructor Siemens1
what is a ststic variable and stiticfunction briefly explain with exmple and in which case we use HCL1
how to create thread in java? Infosys10
what is the need of abstraction? what is abstraction?what is the abstraction for stack? Verizon5
What is the difference between declaration and definition?  6
 
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