title: How to avoid singleton?
body: <p>I have 6 classes as shown in the image below. I want all of these to be instantiated only once and at the same time, I would like to avoid singletons. <code>Info</code> class object will be created first in the application which reads the information of the system from a file. After this objects <code>A</code>, <code>B</code>, and <code>C</code> need to be created based on the info. After this <code>Server1</code> and <code>Server2</code> objects need to be created. <code>Server1</code> objects want to access <code>A</code> object and <code>Server2</code> wants to access <code>A</code>, <code>B</code>, <code>C</code> and <code>Server1</code> objects.</p>
  
  <p><a href="https://i.stack.imgur.com/4kXLD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4kXLD.jpg" alt="Class heirarchy"></a></p>
  
  <p>How to solve this problem without using the singleton?</p>
  
  <p>Thanks!<br>
  Subbarao</p>