GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Concepts  >  OOPS

 Print  |  
Question:  while copying the objects if you say X a = b and asssume that '=' operator is overloaded then what it will call, a copy constructor or operator overloading function



October 10, 2006 17:51:54 #5
 vijay saxena   Member Since: Visitor    Total Comments: N/A 

RE: while copying the objects if you say X a = b and a...
 

constructor will first call. becs this function invoked when new object is created so it first look for constructor rather than go for operator overloading.

vijay

     

 

Back To Question