title: Best way to share a function between two class files
body: <p>There are two files <code>A.cs</code> and <code>B.cs</code>. There is a method <code>fn()</code> which is used in both the classes. </p>
  
  <p>Method <code>fn()</code> is used in both class files. This increases code complexity if I need this method in many class files (say 100 files). </p>
  
  <p>I know that we can call this method by creating an object for the class in which this method is defined. How can I share this function between two or more classes without creating an object every time for accessing this method?</p>