java polymorphism a little personal opinion

Reference: https://blog.csdn.net/thinkGhoster/article/details/2307001

According to understand, sort out the flow chart below. For which the relationship class

Children new new P = Parent (); 
p.print (Sub Sub);

// Parent Children is derived class, Sub Super derived class is

 

Guess you like

Origin www.cnblogs.com/katsu2017/p/11609189.html