The moose likes Beginning Java and the fly likes Constructor in Abstract class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Constructor in Abstract class?" Watch "Constructor in Abstract class?" New topic

Constructor in Abstract class?

Max White
Ranch Hand

Joined: Jun 28, 2008
Posts: 85
Can we provide a constructor with arguments in an Abstract class?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45410
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

Joined: Oct 02, 2003
Posts: 11924

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!

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
subject: Constructor in Abstract class?
It's not a secret anymore!