Discuss / Python / java和C#一样有接口来解决多重继承的问题

java和C#一样有接口来解决多重继承的问题

Topic source

#1 Created at ... [Delete] [Delete and Lock User]

java和C#虽然没有多重继承类,但可以多重继承接口。

是呆呆

#2 Created at ... [Delete] [Delete and Lock User]

没错,接口中定义defaul方法即可一定程度上实现方法MixIn


  • 1

Reply