If both the method and the parameter specify access modifiers, they must match, or at least the parameter type be more visible than the method. See Access Modifiers for more information.
In the following example, you must change one of the access modifiers to match the other, or remove the modifiers completely (in which case, PUBLIC visibility is assumed).
class-id Animal. method-id getAge PUBLIC. procedure division using by value dYears as type convAge. end method. class-id convAge PRIVATE. ... end class. end class.