aspose file tools*
The moose likes Beginning Java and the fly likes multilevel inheritance  in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "multilevel inheritance  in java" Watch "multilevel inheritance  in java" New topic
Author

multilevel inheritance in java

nagu datla
Greenhorn

Joined: Jan 27, 2008
Posts: 4
how to invoke the members of a super class(multilevel) in java.give an example .

If class b extends a and class c extends b then how to invoke the members of the class a in c .
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by nagu datla:
...If class b extends a and class c extends b then how to invoke the members of the class a in c...

Welcome to JavaRanch!

Have you tried writing some code to test this? It's easier than you think. C inherits all that is in A, so unless the member is private, it should be readily accessible.
[ January 27, 2008: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multilevel inheritance in java