title: How do I inherit a function from another class into an activity in kotlin?
body: <p>I have my custom SDK code where I have a manager class which has a couple of functions say "function1(abc,def) " , function2(abc,def) and function3 (abc,def).
  Now I have an activity in which I am trying to use these functions from my SDK. How do I inherit the functions already used in the managers functions + define my own? </p>
  
  <p>here's my code in manager:</p>
  
  <pre><code> override fun function1(reader: Reader?, openType: OpeningType?) {
     some code 
  }
   override fun function2(reader: Reader?, openingResult: OpeningResult?) {
   some code 
  }
   override fun function3(reader: Reader?, openType: OpeningType?, openingStatus: OpeningStatus?) {
  some code
  }
  </code></pre>
  
  <p>Now I have an activity where I use this SDK as a dependency, and I would like to use these functions such that </p>
  
  <pre><code>class MyActivity : AppCompatActivity(),Managerlistener {
   override fun function1(reader: Reader?, openType: OpeningType?) {
  // super. some code? 
       }
       override fun function2(reader: Reader?, openingResult: OpeningResult?) {
  // super. some code? 
  
      }
       override fun function3(reader: Reader?, openType: OpeningType?, openingStatus: OpeningStatus?) {
  // super. some code? 
  
      }
  
  
  ...
  }
  </code></pre>
  
  <p>Now, you may have noticed I hav e super.some code commented out, thats because its the java way of doing things, not sure how to go about inheriting the code in kotlin(super equivalent in kotlin? ) so I can inherit that code and on top of that add my additional code. How do I go about the same? Pretty new to kotlin and not sure about the constructs used.</p>