A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
call constructor of super class?
abalfazl hossein
Ranch Hand
Joined: Sep 06, 2007
Posts: 602
posted
Mar 30, 2011 03:43:16
0
Must subclass call constructor of super class always and initialize its variable?
What is the exception?
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
I like...
posted
Mar 30, 2011 03:49:35
0
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:
http://aspose.com/file-tools
subject: call constructor of super class?
Similar Threads
Constructors in Super Class
Constructors
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