Calling a function in a file different from the one where the object is instantiated
<p>I have three files.</p>

<p><strong>file 1</strong>
This has the class definition and all the methods in the class are also defined here</p>

<p><strong>file 2</strong>
The object of the above class is instantiated here</p>

<p><strong>file 3</strong>
Here I want to call one of the methods using the object created in file 2</p>

<p>I am trying to do above thing is because I want the code to be modular. Is there a better way to do this? Can you post any other solution that you may have? </p>
