• LSP, the Liskov Substitution Principle
  • 子类可以完全替换父类。也就是继承只扩展新功能