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
Why do we use polymorphism?
What type of loop is a for loop?
What is the significance of classes in oop?
What is oops concept with example?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Can we define a class within the interface?
What causes polymorphism?
What is the importance of oop?
What is object in oop?
What is object in oop with example?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
Explain the advantages of inheritance.
Are polymorphisms mutations?
What is class in oop with example?
What is difference between pop and oop?