wood burning stoves 2.0*
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
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
 
Similar Threads
Simple Question regarding Abstract class
Interface variables
Abstract class??
Using Static Elements inside abstract class
error in K&B book?