title: Swift override instance variables
body: <p>I know this answer has already been posted in some other form here, but I'd like to understand more about overriding instance variables in swift.</p>
  
  <p>Let's say I have this code</p>
  
  <pre><code>class BaseView:UIView{
   let someVariable:Int = 1
   // do some work with someVariable
  }
  
  class ExtendedView:BaseView{
   let someVariable:Int = 2
  }
  </code></pre>
  
  <p>Ok. From what I read, the constant requires an override prefix. Other answers said that I should declare the setter and getter? Why? I really don't care about those two. I just need the value replaced. I can't really use the <code>init</code> override because I'm inheriting from UIView and this might be quite dangerous (i think). </p>
  
  <p>Any suggestions are welcomed.</p>