著名的LSP 原则:Functions that use pointers or references to base classes must be able to use objects of derived classes without knowing it.
艺术就是从经验中提取模式,以及在此过程中获得的优雅的享受。