首页
技术面试题 3000
如何用 interface 实现多态?
如何用 interface 实现多态?
答案解析
定义接口,多个类型实现接口方法,函数参数用接口类型,传入不同实现即可实现多态。
返回列表
返回首页