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
Is html an oop?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is solid in oops?
What does enum stand for?
What is difference between inheritance and polymorphism?
What are benefits of oop?
How do you use inheritance in unity?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
Give two or more real cenario of virtual function and vertual object
What makes a language oop?
What is this pointer in oop?
What is a null tree?
Can bst contain duplicates?
What is pointer in oop?
How is class defined?