开发者

Circularity in Class initialization

开发者 https://www.devze.com 2022-12-14 09:07 出处:网络
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 Instanti

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

精彩评论

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