File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 46349
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: 11955

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
I agree. Here's the link:
subject: Constructor in Abstract class?
It's not a secret anymore!