FileDocCategorySizeDatePackage
DeclaringClassDemo.javaAPI DocExample1177Sun Dec 14 22:47:38 GMT 2003oreilly.hcj.reflection

DeclaringClassDemo

public class DeclaringClassDemo extends Object
Demonstrates the use of getDeclaringClass().
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)
Demo method.

param
args Command line arguments.

		Method[] methods = Account.class.getMethods();
		for (int idx = 0; idx < methods.length; idx++) {
			System.out.println(methods[idx] + " declared by "
			                   + methods[idx].getDeclaringClass());
		}