[DUG] Accessing an ancestor class private field

Conor Boyd lists at conor.org.uk
Fri Jun 10 10:44:26 NZST 2005


If I understand you correctly...
 
You can increase the visibility of a property in sub-classes by simply
redeclaring the property in a declaration section with greater visibility
(e.g. redeclaring a protected property in the public section), but I don't
think you can for fields.
 
A title in the Delphi 5 help called "Property overrides and redeclarations"
may provide more information.
 
Cheers,
 
Conor

  _____  

From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Todd Martin
Sent: Friday, 10 June 2005 10:28 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Accessing an ancestor class private field


I seem to recall someone posting a message showing a hack of how to access a
private field in an ancestor class. 
Something along the lines of redeclaring the field in the descendant class.
I've tried to find the solution, but with no luck. 
Can someone please remind me. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20050610/78cd20b5/attachment-0001.html


More information about the Delphi mailing list