Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Constructor in Abstract class?

 
Max White
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we provide a constructor with arguments in an Abstract class?
Thanks..
 
Campbell Ritchie
Sheriff
Pie
Posts: 49411
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. There was a recent discussion of a similar theme, which you can find with the search function. Maybe here, but that won't be any use; look who was writing
 
fred rosenberger
lowercase baba
Bartender
Posts: 12146
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should try it!!! writing code and experimenting is a great way to learn stuff. write a class or two, compile them, and see what happens!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic