Introduction to OOP Chapter 25: Reflection and Introspection : next previous audio real text

Methods as Objects

The next level of complexity is treating a method as an object.

First step is to get a collection of methods from a class

	Method [ ] methods = aClass.getDeclaredMethods();  // Java

	aSet <- aClass selectors.   // Smalltalk

Intro OOP, Chapter 25, Slide 06