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

What is data binding in oops?

841


Who invented oop?

853


Is oop better than procedural?

788


Which method cannot be overridden?

780


Why is object oriented programming so hard?

839


What do you mean by abstraction?

836


Why is destructor used?

773


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

1813


What is the real time example of encapsulation?

810


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1637


hi all..i want to know oops concepts clearly can any1 explain??

1905


class type to basic type conversion

2104


What is an interface in oop?

790


What is abstraction with example?

843


Which is not an object oriented programming language?

755