This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 38107
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: 11175

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?
Similar Threads
interface is nothing but a pure abstract class. why interface does not has constructor
Please hellllllp
abstract class