Inherited nature: to establish contact between father and son in the class, so that subclasses have attributes and functions of the parent class

contact directly:

oc:isa;

java:class;

Indirect contact:

c ++: virtual function table;

 

Object memory model;

Guess you like

Origin www.cnblogs.com/feng9exe/p/10985733.html