Access private field in different unit.
Original Reporter info from Mantis: theo @theo222
-
Reporter name:
Original Reporter info from Mantis: theo @theo222
- Reporter name:
Description:
uses contnrs;
type
TPublicQueueList = class(TQueue)
public
property List: TList read FList;
end;
This compiles. FList is private in TOrderedList.
Isn't this a lesson #1 no-go in OOP?
Mantis conversion info:
- Mantis ID: 14650
- Version: 2.2.4
- Fixed in version: 2.6.0
- Fixed in revision: 13794 (#1eceb2ca)