Thanks for the quick reply, I found out that I was totally
misunderstanding what the {{ }} means ...
thank you...
On Jun 22, 2:58 pm, Olivier Monaco <[email protected]> wrote:
> Not the "parent" object. Your class is erp.client.Test but the class
> of u is erp.client.Test$1. "$1" means the "first" anonymous class of
> Test. This is a Java behavior.
>
> Olivier
>
> On Jun 22, 1:22 pm, "[email protected]" <[email protected]> wrote:
>
>
>
> > Hi,
> > I tried to do the following:
>
> > University u = new University()
> > {
> > {
> > setName("Ahmed");
> > setPrice(500);
> > }
> > };
>
> > University u2 = new University();
> > u2.setName("Hassan");
> > u2.setPrice(1000);
>
> > Window.alert(u.toString() + "\n" + u.name + "\n" + u.getPrice() +
> > "\n
> > \n" + u2.toString() + "\n" + u2.name + "\n" + u2.getPrice());
>
> > I go the following result:
> > erp.client.tes...@1bafdb4
> > Ahmed
> > 500.0
>
> > erp.client.univers...@1663655
> > Hassan
> > 1000.0
>
> > I don't really understand how did the first object report it self as
> > being the parent object.
> > May someone explain, please? And is this behavior GWT specific or
> > applies to desktop java too?
>
> > Thank you.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.