With Java you do not need to deconstruction. Even when you new an 
object, you do not need to destroy it, Java will auto clean it for you.

This is one of diferences between C and Java.

Best Regards!


CHEN HAN A wrote:
>
> Hi,
>
> I have experience for c++, but I con't find deconstruction function in 
> java.
> i know java's garbage collection.
>
> But consider this scenario:
> I use class variable "count" to count the number of object and 
> "count++" in constructor.
> When a object have to be destory, "count--" have to be execute.
> How can i do?
>
> Thanks!
> Best Regards,
> Chen Han
>  
>   
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to