classes can be trained to teach methods to their children