Answering this questions needs one's discretionI strongly encourage new Java people try to answer FromZtoA's question. Of course, you had better post your reasoning. I will comment on the quiz problem in a few days.
-jabber(jabber);
2000-10-10{170}(#10372@0)
Let me try it.A compiler error will be generated.
In the method "add" in class "AClass", the variable "ref" refers to another object rather than the object who executes this method. Thus a call to "ref.x" is invalid, because x is a private member.
I admit this program is quite tricky, and it's helpful for us new learner.
FromZto A, what's your opinion? I have posted my comments on your Quiz.
-jabber(jabber);
2000-10-14(#10776@0)
Thanks jabber. You got 100 in the quiz and Sailor got 0.How is your Java school plan? Actually I'm quite interested in a position of Oracle instructor. So if you need one...
-peterlf(fromZtoA);
2000-10-14{118}(#10779@0)
Vancouver is a nice place.Here temperature seldom drops under zero. I used to be in Scandinavia for a long time and I cannot stand with very cold weather for very long winter.
You are very organized and plan things carefully in advance. It's very important for success. I believe your unselfish helps to other people in this forum will reward someday.
I thinks someone else also interested in your background as me, such as how old... I think you will be much elder than me. I'm 26 yet.
-peterlf(fromZtoA);
2000-10-15{468}(#10820@0)
I love sauna, but now I only got a steaming room, so upset.
-guest:;
2000-10-15(#10823@0)
How old am I?You know it is impolite to ask a lady her age.
But I can offer you some interesting answers.
(I do believe you are a gentleman, so just for fun and for helping new immigrant learning English.)
Q: If you don't mind, can you tell me how old you are?
A1. I am always 29.99
A2. I am older some than some, but younger than others
A3. I have not yet been as old as centuries
A4. I am twenty this year, but eighteen next year....
-jabber(jabber);
2000-10-15{441}(#10847@0)
Is Jabber a lady? I don't believe it. How can a lady be so good at Java?
-peterlf(fromZtoA);
2000-10-15(#10864@0)
It does not matter whether I am a guy or a ladyHowever, you guy might be thought of as being a sexist. Please don't discriminate females. I can remind you that the Chief Architect for Sun's JINI project is a lady.
-jabber(jabber);
2000-10-15{169}(#10914@0)