posted 16 years ago
Sarath,
with Method[] mm=s.getClass().getMethods();
you only get the methods in Class S and R which have the access modifier public, not protected and not private.
Since getMethods() is a method in Class Class, in package java.lang, it won't find the private and protected mehtods neither in Class S nor in Class R.
So you have to modify the methods you want to be found in both classes R and S to coderanch.
Bye
Arsineh
[ June 04, 2008: Message edited by: Arsineh Keshishian ]