This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes How To Placed variables in Abstract classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How To Placed variables in Abstract classes" Watch "How To Placed variables in Abstract classes" New topic
Author

How To Placed variables in Abstract classes

kashif hameed
Greenhorn

Joined: Jun 15, 2003
Posts: 15
How to placed variables in abstract classes.
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
The same way you do in concrete classes: just declare them. The only thing different about an abstract class is that you cannot directly create instances from it.


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How To Placed variables in Abstract classes