title: Pass an object created in one class to another class
body: <p>I have a class named <code>StatisticFrame</code>. This class creates an object named <code>stats</code> inside a method. How can I pass this object created from <code>StatisticFrame</code> class to another class?</p>