is this is the correct way 2 write destructor of copy constructor and parameterised constructor
~a(int x,float y)
~a(a &a1)
pooja.singh.3950 -3 Newbie Poster
Recommended Answers
Jump to PostNo there is only ever a single destructor
~a() { }
It never takes any parameters. This makes sense, the reason that you have parameterised constructors is that you may wish to initialise your object in several different ways, but when you destroy your object there …
All 4 Replies
Banfa 597 Posting Pro Featured Poster
pooja.singh.3950 -3 Newbie Poster
Ketsuekiame 860 Master Poster Featured Poster
nchy13 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.