It's because when you overriding a method from a superclass with the same
name mymethod(); *this *reference is needed to point to local (overriden)
version of mymethod();
as well as for constructors.

2009/3/21 Ryu <[email protected]>

>
> Hi to everyone,
>                      Hope everyone is fine . I have a question that
> if    "this.mymethod3()"     is same as  "mymethod3()" so why we use
> "this.mymethod3()"  . Is it only a good programming practice or it
> really means something .What happened when we use   "this.somemethod
> ()"   and only "somemethod()" . What's the difference between these
> two
>
>                      Thanks in advance
>
>
>
>
>
> >
>


-- 
С уважением, Николай.

--~--~---------~--~----~------------~-------~--~----~
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/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to