阅读背景:

没有实例共享变量的Composite和Hierarchy

来源:互联网 

I've written a good chunk of code that relies heavily on both inheritances and composition. Now i've run into a problem where my hierarchy classes need variables to be shared to work between each other, but that causes the composited classes to be shared too, meaning my separate instances of these classes will share values where i don't want them to. I obviously suck at explaining this with words so i wrote some code.I've written a good chunk of code that relies h




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

分享到: