public function walk() { // Look for a walk() method in this object's parent classes // (in this case, it would be Animal's walk() method), call it, // and pass it the number of legs for this dog $mixin = Mixin::getMixin($this); $mixin->parentCall($this, 'walk', $this->legs); }