- Destructor is a method that is called when an instance goes out of scope. These are used to clean up any resources.
- It has same as the class name, but with prefix ~ (tilde).
- They do not have return types not even void and therefore they cannot return values.
Subscribe to:
Post Comments
(
Atom
)
0 comments :
Post a Comment