19. ----- object-oriented instantiated object subclass of the entire process

1. Understanding

  Due to the presence of the super keyword, after the subclass inherits the parent class, subclass object is instantiated, super () will call the parent class constructor parameter space and further upwardly been traced, until the Object class;

2. graphic

 

 3. Note

  Although the presence of super (), it will call the parent class constructor, but from beginning to end only creates a subclass object.

 

 

Author: Java beauty

Date: 2020-03-29

Guess you like

Origin www.cnblogs.com/897463196-a/p/12590550.html