A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
call constructor of super class?
Joined: Sep 06, 2007
Mar 30, 2011 03:43:16
Must subclass call constructor of super class always and initialize its variable?
What is the exception?
Joined: Mar 06, 2001
Mar 30, 2011 03:49:35
it must always happen, but if the no-arg constructor is available in the super class then this constructor is called by default if you do not specify a super class constructor yourself.
Feel free to try this at home.
I agree. Here's the link:
subject: call constructor of super class?
Constructors in Super Class
Overloaded Constructor Not Working - Cannot Find Symbol
Clarifications/Suggestions in Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013