title: Calling function in initializer : Swift
body: <p>I want to call a function in initializer, but i couldn't do it</p>
  
  <pre><code>class someclass {
  
      var a : Int
      var b : Int
  
      init() {
  
          self.a = 5
          self.b = 4
  
          func printx () {
              println("you called the function")
  
          }
          printx()
      }
  }
  
  var ab = someclass()
  </code></pre>
  
  <p>Is it posible to do that something like ab.init().printx 
  And
  Will this printx() function execute when i initialize  with someclass()</p>