Subclass inherits problems

Use super use the parent class methods and variables hidden by subclasses.

Subclass does not inherit the parent class constructor to call the parent class constructor should the use of the parent class constructor need to use super (), must be the first statement of the subclass constructor.

 

Guess you like

Origin www.cnblogs.com/hutianhao/p/11809379.html