新Sir

导航

 

2021年6月27日

摘要: 多态就是多重形态。 案例: 收入的案例: package main import ( "fmt" ) type Income interface { calculate () float64 source() string } //固定账单项目 type FixedBuilding struct { 阅读全文
posted @ 2021-06-27 21:39 新Sir 阅读(1333) 评论(0) 推荐(0) 编辑