Fixed OO bug

Fixed OO issue where a method in the parent class would reference the declaration of a method from the parent instead of the version overridden by the child class.