As far as referencing other object, you can pass reference to the class as shown above, or alternatively create an inner class (or inner anonymous class) which has access to the holding class...