抽象类侧重于描述事物本质,而接口侧重于描述事物的功能
例如: 保温杯是水杯,有保温功能。 class 保温杯 extends 水杯 implements 保温 防盗门是门,有防盗功能 class 防盗门 extends 门 implements 防盗