Destructor

  • 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.

0 comments :

Post a Comment

> Related Posts with Thumbnails
 

Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger