Results 1 to 4 of 4
- 11-01-2011, 06:06 AM #1
Member
- Join Date
- Mar 2009
- Posts
- 14
- Rep Power
- 0
- 11-01-2011, 07:38 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
Re: What, if we call super() from parents default constructor?
Are you expecting something spectacular to happen? A default constructor (better: no-arg constructor) is just a constructor and every constructor either calls another constructor in its class or it calls a superclass constructor.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-01-2011, 08:06 AM #3
Member
- Join Date
- Mar 2009
- Posts
- 14
- Rep Power
- 0
Re: What, if we call super() from parents default constructor?
It is the parent class constructor which is not deriving from any other class. So will it call object class constructor?
- 11-01-2011, 08:24 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
Re: What, if we call super() from parents default constructor?
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Why do I need to call my constructor to get this to work?
By fresh83 in forum New To JavaReplies: 7Last Post: 10-28-2011, 07:26 AM -
Default constructor by compiler.
By manishdivs in forum New To JavaReplies: 2Last Post: 09-19-2011, 05:31 PM -
Junit3 error: Implicit super constructor TestCase() is not visible
By albertkao in forum Advanced JavaReplies: 3Last Post: 01-21-2011, 01:37 PM -
how to call higher level super class method?
By satheeshtech in forum Advanced JavaReplies: 2Last Post: 01-12-2010, 03:11 PM -
Private constructor and super()
By Basit56 in forum Advanced JavaReplies: 9Last Post: 08-21-2009, 06:19 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks