File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Attribute overriding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Attribute overriding" Watch "Attribute overriding" New topic
Author

Attribute overriding

Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79
Hi,



The above code gives the output:


Does this mean,
1] only methods get overridden and attributes are not overridden, or
2] Runtime binding of only methods occur and not of attributes.
3] And also is Runtime binding and overriding is same?

Thanks in advance.

---------------
Kalai Selvan T.
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
Does this mean,
1] only methods get overridden and attributes are not overridden, or
2] Runtime binding of only methods occur and not of attributes.
3] And also is Runtime binding and overriding is same?


1] Yes, attributes are hidden, not overridden
2] Yes, attributes are bound at compile time
3] There are other kinds of runtime binding, but they don't apply here


Mike Gershman
SCJP 1.4, SCWCD in process
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Attribute overriding