aspose file tools
The moose likes Beginning Java and the fly likes call constructor of super class? 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
Reply Bookmark "call constructor of super class?" Watch "call constructor of super class?" New topic
Author

call constructor of super class?

abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 602
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

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