Follow

接口和抽象类哲学上的区别是什么?

抽象是对类的抽象
接口是对行为的抽象

接口是为了代码扩展性和隔离性
抽象类是为了代码的复用性

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.