开发者

Circularity in Class initialization

I was reading something today and came across a statement that said: Lazy instantiation开发者_如何学运维 helps avoid harmful circularity in class intialization. What does circularity in Class Instantiation mean?


Class A in its constructor creates instance of class B, class B creates instance of class C, and class C creates instance of class A.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜