Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


if u write a class do u write Assignment operator and copy
constructor



if u write a class do u write Assignment operator and copy constructor..

Answer / sachin

Compiler provide the assignment operator/ copy constructor
by default. The assignment operator and copy constructor do
the bit wise copy of the object. If user want to do the
member wise copy(ex:allocating the memory from the heap)
for the members, one can write his/her own assignment
operator/ copy constructor.

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More OOPS Interview Questions

1. Define a class.

6 Answers  


Program to print 0 to 9 in cross order

3 Answers  


What is overloading in oops?

0 Answers  


what is the difference between inter class and abstract class...?

0 Answers  


write a C++ program for booking using constructor and destructor.

0 Answers   HAL,


What is Object and Class? What are the differences between them?

5 Answers  


143.what is oops principles?

10 Answers  


2. Give the different notations for the class.\

0 Answers  


what is the difference between <stdio.h>and "stdio.h"?

5 Answers  


what is virtual function?

26 Answers   Aspire, HP, Infosys, RoboSoft, TCS,


Can a destructor be called directly?

0 Answers  


What is difference between inheritance and polymorphism?

0 Answers  


Categories