Results 1 to 2 of 2

Thread: Class constructors and deconstructors

  1. #1

    Thread Starter
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

    Resolved Class constructors and deconstructors

    I always have a constructor in my classes where i initialise variables, etc...

    Do i need a class deconstructor to clear and destroy these variables?
    Last edited by x-ice; Feb 25th, 2007 at 07:15 PM.

  2. #2
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Class constructors and deconstructors

    No. Java has automatic garbage collection, and it happens periodically.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width