skip to main
|
skip to sidebar
Java In Depth
Monday, September 15, 2008
Total no. of instances
How will you find the total number of instances for a class?
Have a static variable and increment that variable in the constructor.
http://www.pp.rhul.ac.uk/~george/PH2150/html/node48.html
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Labels
Annotations
(1)
Core Java
(1)
hibernate
(2)
Followers
No comments:
Post a Comment