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.
精彩评论