Yes, using the same name, would only get things confusing.
However, I'm not sure when you would need to do that... Probably if you need
to "redefine" an attribute with a different type.

On Mon, May 25, 2009 at 3:00 AM, ghanoz 2480 <[email protected]> wrote:

> Ok, now i know the reason is why declaring a field in the subclass with the
> same name as the one in the
> superclass, it is not recommended. So the conclusion when we doing that
> will make the stuff "*confusing*" and "*useless*". am i right?
> Btw, thank you for your time to share me what y'all already know about
> this.
>
> Best regards,
> M. Ghazali a.k.a ghaNOZ 2480
>
>
> ==================
> Blog:
> Catatan Online ghaNOZ 2480
> http://ghanoz2480.wordpress.com
>
> Facebook:
> http://www.facebook.com/people/Ghanoz-Ghazali-Emce/1003026334
> ==================
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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