title: How would you design class structure for a building, floors and space- Object-Oriented
body: <p>What would be an elegant OOP design for these requirements?</p>
  
  <p><em>"Design class structure for a building, floors and space. The space can be an apartment, a store or an office. Include any properties, fields and methods you think would be interesting to have."</em></p>
  
  <p>I've tried this but i think it's not a good solution:</p>
  
  <pre><code>space {
      floor {
      }
      building {
          floor{
          }   
      }
  }
  </code></pre>