title: Closure in Swift?
body: <p>So I am reading the some code and I see a trailing closure, from my understanding and some googling, it seems trailing closure is used when you have a final parameter as a closure so you can pass it as a trailing closure.</p>
  
  <p>And this is what confuses me.
  I have a class A and a class B. Class B inherits from Class A. In Class A, there is a function C looks like this:</p>
  
  <pre><code>func C(text1: String, text2: String) -&gt; SomeOddType{...}
  </code></pre>
  
  <p>now in Class B, it overrides this function, but the body is like this:</p>
  
  <pre><code>override func C(text1: String, text2:String) -&gt; SomeOddType{
   if let someVar = super.C(text:text1, text:text2){
    //some code that's not in the super method
    return someVar
    }
  }
  </code></pre>
  
  <p>What does that do??? I am so confused. It doesn't have a closure as a parameter, and since it's already calling the super method, the code inside the override version is an add-on to the implementation? </p>