A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: call constructor of super class?
Constructors in Super Class
Clarifications/Suggestions in Java
Overloaded Constructor Not Working - Cannot Find Symbol
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013