This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Java in General and the fly likes to access static variable of abstract class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "to access static variable of abstract class" Watch "to access static variable of abstract class" New topic
Author

to access static variable of abstract class

siva venkata prasad
Greenhorn

Joined: Jul 14, 2011
Posts: 17
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

Joined: Mar 12, 2010
Posts: 79
Just use OOP features.
siva venkata prasad
Greenhorn

Joined: Jul 14, 2011
Posts: 17
Thanks . It helped.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: to access static variable of abstract class
 
It's not a secret anymore!