阅读背景:

在Go中建模“超类方法实现”的最佳方式是什么?

来源:互联网 

I am looking to translate a "classic OO" example into Go, one in which a set of subclasses implement some methods on their own but they share an implementation of some methods via their superclass. I'm well aware of how to use Go's interfaces and I've even used embedding, but I'm not quite sure what, if any, idioms to employ to capture this intended behavior.I am looking to translate a "classic OO" exampl




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: