title: Design Issue: Trying to avoid code duplication while using Consts
body: <p>Consider this class diagram:</p>
  
  <p><img src="https://i.stack.imgur.com/tnOOE.png" alt="enter image description here"></p>
  
  <p>Car has a <strong>constant</strong> max speed of 200 kph, and bus 100 kph. I represent this as a const maxSpeed field in the sub-class;</p>
  
  <p>How do I make getMaxSpeed() return this constant. This is a simple example only to illustrate my problem, so duplicating the getMaxSpeed() to every sub-class won't help me.</p>
  
  <p>Is there any way to do it?</p>
  
  <p>I already considered the solution of avoiding consts and using virtual properties, but then every instance of the class will hold a maxSpeed field, which is a waste of space.</p>