Gaicu that one! If the Senate with a subclass of the construction method, then, must be the father of explicit definition of a non-default constructor parameter.
Abstract: A Gaicu that! If the Senate with a subclass of the construction method, then, must be the father of explicit definition of a non-default constructor parameter.
Class Parent
(
Public Parent (String name) ()
)
Class Child extends Parent
(
Public Child (String name) ()
)
Public class MyMainClass
(
Public static void main (String args []) (
Child c1 = new Child ( "zhangsan");
)
)
Tip seventh sentence is wrong! You help me look!
Class Parent
(
Public Parent (String name) ()
Public Parent () ()
)
Class Child extends Parent
(
Public Child (String name) ()
)
Public class MyMainClass
(
Public static void main (String args []) (
Child c1 = new Child ( "zhangsan");
)
)
If the Senate with a subclass of the construction method, then, must be the father of explicit definition of a non-default constructor parameter.
↑ Back
Tags: java method, the method






