A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Constructor in Abstract class?
Joined: Jun 28, 2008
Aug 21, 2008 12:21:00
Can we provide a constructor with arguments in an Abstract class?
Joined: Oct 13, 2005
Aug 21, 2008 12:38:00
Yes. There was a recent discussion of a similar theme, which you can find with the search function. Maybe
, but that won't be any use; look who was writing
Joined: Oct 02, 2003
Aug 21, 2008 14:18:00
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
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Constructor in Abstract class?
interface is nothing but a pure abstract class. why interface does not has constructor
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015