📜  统一抽象类与接口 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:27.640000             🧑  作者: Mango

代码示例1
An abstract class generally defines the core identity of a class, 
while an interface is used to define peripheral abilities. 

This is why you can only have one base class, but a infinite number of interfaces