previous | start | next

## Getting A Single Method Descriptor

- Supply method name
- Supply array of parameter types
- Example: Get `Rectangle.contains(int, int)`:

      Method m = Rectangle.class.getDeclaredMethod(

         "contains",

         new Class[] { int.class, int.class });

- Example: Get default `Rectangle` constructor:

      Constructor c = Rectangle.class.getDeclaredConstructor(

         new Class[] {});

previous | start | next