newbie java/OOP question

From: Mike0000 (user245_at_nospammmmmmmmmmm.hotmail.com)
Date: 10/07/03


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


Relevant Pages

  • Re: Firefox not loading dom quickly enough: how to wait?
    ... > Also the little bit of syntax where you called the function of the ... Sorry for the misinformation about the body object not existing, ... know how I'd gotten that into my head. ... And that will work such that when the window loads it runs the code and thus ...
    (comp.lang.javascript)
  • Re: how to check programatically wether a oracle stored procedure has default valued parameters?
    ... I would resort to Oracle DDL (using sql statements to query for the values ... I don't know the syntax out of my head. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: I love this
    ... > No, off the top of my head, I think it is UpdateWindow ... Actually I used the wrong syntax anyway. ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Re: Help needed for XFace syntax
    ... Between saving the world and having a spot of tea Plonk Magnet said ... syntax. ... I can't seem to get my head around it. ...
    (news.software.readers)
  • Re: Split file using tar
    ... John B wrote: ... cannot figure out the syntax. ... I've used 'head' and 'tail' to do that. ...
    (alt.os.linux)