Normally we should use keyword class
to define a class computed property,
like
class Square{
class var area:Float{
return 100.0*100.0
}
}
However we can not use class
to define a stored property (I know it results from OC).
And meanwhile we may use static
in a class to define a stored property and it runs successfully.
So my question is: what are the differences between static
and class
when used in a class?