Jump to content
Wikibooks The Free Textbook Project

Talk:Java Programming/Keywords/super

Page contents not supported in other languages.
Add topic
From Wikibooks, open books for an open world
Latest comment: 15 years ago by Albmont in topic Used in constructors?

Following use of 'super' is not mentioned: <GenericClass super SomeClass>

Which means that GenericClass may only be SomeClass or a superclass/superinterface to SomeClass

It is now described. 20:12, 29 November 2013 (UTC)

Used in constructors?

[edit source ]
Latest comment: 15 years ago 1 comment1 person in discussion

Is super also used in constructors?

public class MyClass2 extends MyClass1 
{
 ...
 // constructor
 public MyClass2(ClassA1 arg1, ClassA2 arg2, ClassA3 arg3)
 {
 super(arg1, arg2) // calls MyClass1 constructor
 ...
 }
}

. Albmont (talk) 19:21, 30 December 2009 (UTC) Reply

Yes, as you write it. 20:12, 29 November 2013 (UTC)

AltStyle によって変換されたページ (->オリジナル) /