The process of creating classes of Java

The process of creating an object:

  1. Heap allocation parent space
  2. Heap space classification subclasses
  3. Attribute initialization
  4. Call the constructor (the first row by calling the parent class constructor)

Guess you like

Origin www.cnblogs.com/heenhui2016/p/10963256.html