Packaging
package filed in class
- public
- protected
- default
- private
get/set(->private field) method: alt + Insert
extends
super and this
super:
super calls constructors of Father()(-> super()), super must locate first
super could just occurs in Son()
neither super nor this
this Vs. super
this: self-class, use with or without extending, this()
super: Father(), use with extending,super()
Polymorphic
polymorphic of method
extends but method re-write: Father() f1 = new Son()
static final private can’t re-write so no polymorphic to them
- **Son() ** calls method in Son() and Father()
- Father() decide method if method is not re-written
- if method is re-written in Son(), calls method in Son()