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
What is data binding in oops?
Who invented oop?
Is oop better than procedural?
Which method cannot be overridden?
Why is object oriented programming so hard?
What do you mean by abstraction?
Why is destructor used?
what are the ways in which a constructors can be called?
What is the real time example of encapsulation?
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?
hi all..i want to know oops concepts clearly can any1 explain??
class type to basic type conversion
What is an interface in oop?
What is abstraction with example?
Which is not an object oriented programming language?