Re: acces of members of subclass
- From: Mark Space <markspace@xxxxxxxxxxxxxx>
- Date: Mon, 28 Jul 2008 14:16:21 -0700
Lew wrote:
From the JLS:
If a constructor body does not begin with an explicit constructor invocation and the
constructor being declared is not part of the primordial class Object, then the
constructor body is implicitly assumed by the compiler to begin with a superclass
constructor invocation "super();", an invocation of the constructor of its direct
superclass that takes no arguments.
The call to super() is *always* present. Any given class, in the
general case, can rely on the presence of super() call. Daniel and
you are not correct.
Ah, I see what you mean. Yes, there is an implicit call to super() if no explicit call is present. What I mean was that this call might fail as there is no zero-argument constructor present in the super class. Which is what I think Daniel meant also.
.
- References:
- [General]acces of members of subclass
- From: Daniel Moyne
- Re: [General]acces of members of subclass
- From: RedGrittyBrick
- Re: [General]acces of members of subclass
- From: Lew
- Re: [General]acces of members of subclass
- From: Daniel Moyne
- Re: [General]acces of members of subclass
- From: Lew
- Re: [General]acces of members of subclass
- From: Daniel Moyne
- Re: [General]acces of members of subclass
- From: Lew
- Re: [General]acces of members of subclass
- From: Mark Space
- Re: acces of members of subclass
- From: Lew
- [General]acces of members of subclass
- Prev by Date: Re: acces of members of subclass
- Next by Date: Re: acces of members of subclass
- Previous by thread: Re: acces of members of subclass
- Next by thread: Re: [General]acces of members of subclass
- Index(es):
Relevant Pages
|