Why are class stored properties not supported in classes? : <p>Basically, Swift does not allow me to do this -</p>

<p>//class stored properties not supported in classes did you mean 'static'. </p>

<pre><code>class var hello = "hello"
</code></pre>

<p>However this is fine - </p>

<pre><code>static var hi = "hi"
</code></pre>

<p>I know that the difference between Class and Static in Swift is that Class variables cannot store stored properties, while Static variables can. However, the fundamental difference between Class and Static variables is that static variables cannot be overridden in subclasses, while class variables can. This is a functionality that I wish to keep.</p>

<p>I know that a simple fix to this issue is to make this a computed property using a hacky fix like this - </p>

<pre><code>class var Greeting : String {
    return "Greeting"
}
</code></pre>

<p>This does solve the problem, and I hope it helps some people online as well. However, I would like to know if anyone knows why Swift behaves this way, and does not allow for stored properties in class level variables.</p>
