0
Can any clearly explain constructor and destructors concept?
Always had difficulty with these topics
1 Antwort
+ 3
A constructor is run when an object is created (often used for initialisation), and can be overloaded.
The destructor is run when an object is destroyed (often use for clean-up). A class can only have one destructor.