• Post Reply Bookmark Topic Watch Topic
  • New Topic

counting objects oft he class  RSS feed

 
Dana Horst
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, please help me to understand the code (i made my try to explain line by line, but not everything is clear)



Thanks!
 
manish ghildiyal
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On line 13(inside constructor) you are just incrementing the counter by 1..that's all you need to keep count
of the objects created, isn't?

Manish
 
Dana Horst
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh yeah, indeed. Thank you Manish
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!