How to call an object from another class?
In my java homework i have to have a field, from a class called Cd point to an object from another class (Person). Now i have tried mighty hard but i just cannot make the final connection, i understand that the class Cd will have a field of type Person which would mean it holds information about an object from that class. i think?
So now my lecturer described it to me with a telephone number example, i could go round the class and get everyones number or i could just get them to write it on a piece of paper and request the paper, which i gathered resembles an object i.e it has the information stored in its fields
Now my issue is how do i call that object from a method in another class i think im going down the right tracks but i seem to be getting more and more confused please can somebody steer me in the right direction?