Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Do not make methods protected unless you want them to be visible as public (https://www.delphipraxis.net/206092-do-not-make-methods-protected-unless-you-want-them-visible-public.html)

DP News-Robot 18. Nov 2020 12:00

Do not make methods protected unless you want them to be visible as public
 
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...


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:58 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz