posted 20 years ago
I know you can have them in there, basically for all your subclasses to call super(); and set some parameters, but is it a common practice to use constructors in abstract classes, is it generally avoided, or does it just depend on the situation?
Since constructors instantiate an object to a certain state, I tend to avoid putting them in abstract classes, because it just doesn't make sense to stick them there, unless convenient. I don't think this is a conscious effort, but instead just goes with the way I visualize the program in "real world" concepts.
Pro's, con's, ideas?
Thanks!
Jason