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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to call a non virtual function in the derived class by using base class pointer

6566


what are the ways in which a constructors can be called?

2139


Where You Can Use Interface in your Project

1893


2. Give the different notations for the class.\

2166


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

2138


How long to learn object oriented programming?

1094


Why is static class not inherited?

1108


What is the difference between a mixin and inheritance?

992


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

2544


What does and I oop mean?

1196


What is the real time example of encapsulation?

1070


what are the realtime excercises in C++?

2842


What is class and object with example?

1134


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2320


can we make game by using c

4148