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, 2005 02:50:06 #3
 rajkishore   Member Since: Visitor    Total Comments: N/A 

RE: while copying the objects if you say X a = b and a...
 
while doing X a=b; in this statement what it will do first create the object 'a' then it will copy the value of 'b' to ' a'. so the copy constructure will call.
     

 

Back To Question