newbie java/OOP question
From: Mike0000 (user245_at_nospammmmmmmmmmm.hotmail.com)
Date: 10/07/03
- Next message: Paul: "Re: newbie java/OOP question"
- Previous message: Chris: "Re: Static Variables -- How Persistant are They?"
- Next in thread: Paul: "Re: newbie java/OOP question"
- Reply: Paul: "Re: newbie java/OOP question"
- Reply: Joe: "Re: newbie java/OOP question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 07 Oct 2003 05:13:14 GMT
Perhaps someone here can help me with this, I tried asking someone else
about this but couldn't quite describe my question.
I understand that this syntax calls a method on behalf of an object:
b1.method();
but in some java example code I see stuff like this (from a link list app) :
answer.head = IntNode.listCopy(head);
I know that "head" is an instance variable of the class, specfically an
IntNode. I also know that "answer" is a method variable of the type
IntLinkedBag.
My question is: what the heck is going on during the "answer.head"
operation? I don't understand how answer is interacting with head.
They're just two objects. What does the period do when it connects two
objects?
Any pointers or keywords to look up would be apprecited.
-- Mike Block Banner Ads Now http://everythingisnt.com/hosts.html
- Next message: Paul: "Re: newbie java/OOP question"
- Previous message: Chris: "Re: Static Variables -- How Persistant are They?"
- Next in thread: Paul: "Re: newbie java/OOP question"
- Reply: Paul: "Re: newbie java/OOP question"
- Reply: Joe: "Re: newbie java/OOP question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|