How to hide a protected procedure of an object?
问题 In one base class, there's a protected procedure. When inheriting that class, I want to hide that procedure from being used from the outside. I tried overriding it from within the private and even strict private sections, but it can still be called from the outside. The Original class is not mine, so I can't change how TOriginal is defined. Is it possible to hide this procedure in my inherited class? And how? type TOriginal = class(TObject) protected procedure SomeProc; end; TNew = class