title: Can I make a "global" object to store variables for multiple objects?
body: <p>I am creating a graphing application that will display several graphs.  The graphs will need access to some global data and some graph-specific data.  For example, I want the colors consistent, so that would be global, but the specific graphs can have different grid spacing (per graph).</p>
  
  <p>I created a "master object" with set defaults and a derived object with per graph configuration options</p>
  
  <pre><code>class GraphMasterObject {
    public Color gridcolor = Color.Red;
  }
  
  class GraphObject : GraphMasterObject {
    public int gridSpacing = 10;
  }
  </code></pre>
  
  <p>Now, from my understanding, I should be able to do this</p>
  
  <pre><code>GraphObject go = new GraphObject();
  Color c = go.gridColor;
  </code></pre>
  
  <p>How can I make it so that if I change go.gridColor, it will change across all objects that inherit from GraphMasterObject?  Is this even possible?  If not, what other solutions are possible?   Something like</p>
  
  <pre><code>GraphMasterObject gmo = new GraphMasterObject();
  gmo.gridColor = Color.Blue;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>GraphObject go = new GraphObject();
  go.gridColor = Color.Blue;
  </code></pre>