This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
There are four classes: A,B,C,D code: class A { void method(){} } class B extends A { void method(){} } public class C extends B { void method(){} } class D extends A{ void method(){} } In class D . How can I use one or more words to call (sibling class)class B' method ?
Ernest Friedman-Hill
author and iconoclast
Marshal
Using Nimo's idea I think you have to make all the methods "static" then use B.method(); Perhaps a rethink on the design might be called for if your sole use of class "B" (or any of the others) is to access a hidden method. [ April 29, 2004: Message edited by: Gary Down ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.