• 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
Posts: 48652
56
  • 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
Pie
Posts: 12100
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