C++
You accidentally create a dozen clones of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you can’t tell which are bitwise copies and which are just pointing at others and saying, “That’s me, over there.”
JAVA
After importing java.awt.right.foot.* and java.awt.gun.right.hand.*, and writing the classes and methods of those classes needed, you’ve forgotten what the hell you’re doing.
(more…)
本文通过幽默的方式探讨了C++中克隆与身份识别的问题,以及Java中复杂的类和方法导致的困惑。
7422

被折叠的 条评论
为什么被折叠?



