Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Constructor in Abstract class?  RSS feed

 
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
Marshal
Posts: 54881
155
  • 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: 12510
48
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!
 
Let's go to the waterfront with this tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!