Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Placed variables in Abstract classes

 
kashif hameed
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to placed variables in abstract classes.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic