Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

to access static variable of abstract class  RSS feed

 
siva venkata prasad
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a scenario ..

An abstract class is having a static variable which should get incremented by 1 everytime when an object of this class type is created.. Can any one suggest how my abstract class code should be?
 
Andrey Kozhanov
Ranch Hand
Posts: 79
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just use OOP features.
 
siva venkata prasad
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks . It helped.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!