• Post Reply Bookmark Topic Watch Topic
  • New Topic

Constructor in Abstract class?  RSS feed

 
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..
 
Marshal
Posts: 57245
175
  • 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
 
lowercase baba
Bartender
Posts: 12592
50
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!
 
Water! People swim in water! Even tiny ads swim in water:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!