title: Which OOP Paradigm should I use?
body: <p>I have near around 25 activities, now I need to write a function which is same in around 3 to 5 activities now I can use any of these OOP paradigm?</p>
  
  <ul>
  <li><p>A static method</p></li>
  <li><p>A singleton class (Application class)</p></li>
  <li><p>A parent class (Inheritance)</p></li>
  <li><p>Create new instance of the class where we have created this
  function (Composition).</p></li>
  </ul>
  
  <p>Currently, I am using Composition, Can anyone please tell me how do you all decide which paradigm is best for which case?</p>