title: Override static var in a child Class Swift
body: <p>To factorize my code, I want to set a stringKey from an Child class which I'll get in a class func in the parent class:</p>
  
  <pre><code>Chair.request();
  Table.request();
  
  class Furniture: NSObject {
  
      static let requestKey : String!
  
      class func request(){
  
          print("class key =&gt; \(self.requestKey)")
          ...
      }
  }
  
  class Chair: Furniture {
      static let requestKey : String = "jsonchairs"
  } 
  
  class Table: Furniture {
      static let requestKey : String = "tables"
  } 
  </code></pre>
  
  <p>Of course, I have the precompiled error message</p>
  
  <blockquote>
    <p>Property does not override any property from its superclass</p>
  </blockquote>
  
  <p>Is there a solution to do this, or do I need to pass the key as parameter? like this:</p>
  
  <pre><code>Chair.request(key : "jsonchairs" );
  Table.request(key : "tables" );
  </code></pre>