http://www.cocoanetics.com/2011/05/and-now-lazy-loading-with-nsurlconnection/
Compile This and Run…
Compile this and run,
“`
include
Item 18: Strive for Class Interfaces That Are Complete and Minimal
Item 17: Check for Assignment to Self in Operator=
By pointer,
Item 16: Assign to All Data Members in Operator=
For a derived class, a way to achieve this is by reusing base class’s =
operator: