这两个类有着非常相似的对象模型。
后两个类代表了业务域驱动示例类。
The latter two classes represent business domain-driven example classes.
现在要将这两个类链接起来。
And it seems pretty obvious that at least two of the things I'm going to want are stock and market.
很明显,我至少要有的两个类是,股票和市场。
I don't have to put an init in, but it's again, usually a good idea to put that in originally.
类定义内做些什么其他的东西呢?,好,在两个例子里,我都有init声明。
应用推荐