title: Swift Class Functions
body: <p>So I am wondering about class functions and "normal instance functions". I would like to know what is the purpose of a class function. Is it just so one can use certain functions without assigning the class to a variable first or does it have other purposes? </p>
  
  <pre><code>class Dog {
      func bark()-&gt;String{
          return "Woef Woef!"
      }
      class func bark_class()-&gt;String{
          return "Woef Woef!"
      }
  }
  
  var dog = Dog()
  dog.bark() // Woef Woef!
  
  Dog.bark() // Throws and error
  Dog.bark_class() // Woef Woef! &gt; Apparently is doens't need an initiated object
  </code></pre>