Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.059 Beiträge
 
#1

Do not make methods protected unless you want them to be visible as public

  Alt 18. Nov 2020, 12:00
One of the protection levels in Delphi is protected. Originally meant for the class itself, that level is also visible to “friends”: anything in the same unit, for example: unit BusinessLogicUnit; interface type TBusinessLogic = class(TObject) protected Procedure Foo(); // ... public // ... end; implementation // ... end. You can even access them from […]

Weiterlesen...
  Mit Zitat antworten Zitat