recategorized by
289 views

1 Answer

1 votes
1 votes

Copy constructor is called when a new object is created from an existing object, as a copy of the existing object 

 assignment operator is called when an already initialized object is assigned a new value from another existing object.

DEstructors are invoked in the reverse order of constructors

Related questions

0 votes
0 votes
1 answer
1
rsansiya111 asked Oct 7, 2022
746 views
Which one of the following fundamental features of the OOPs is not supported by 𝐶++?(a) Persistence(b) Delegation(c) Genericity(d) Data abstraction
0 votes
0 votes
2 answers
2
logan1x asked May 19, 2019
650 views
A default catch block catches,[A]. all thrown objects[B]. no thrown objects[C]. any thrown object that has not been caught by an earlier catch block[D]. all thrown object...
2 votes
2 votes
1 answer
3
LavTheRawkstar asked Jun 28, 2016
436 views
Why Java does not support multiple inheritance?i want answer in simple words. i have searched for this answer in every textbook.Everytext just says that it doesnot suppor...
1 votes
1 votes
1 answer
4
LavTheRawkstar asked Jun 28, 2016
2,130 views
Which of the following methods from Object is final ( that it cannot be overriden ) ?(A) finalize method(B) clone method(C) hashCode method(D) getClass method