Talk:Classes and Objects (Delphi)

From RAD Studio
Jump to: navigation, search
 A private member is invisible outside of the unit or program where its class is declared. 

A private member is invisible outside of the function and procedure of class!!! Thrall15032 23:19, 2 February 2012 (PST)

Response

We have added this item to our work queue.

Many thanks for your comments!

KrisHouser 14:55, 3 February 2012 (PST)

RAD-10531


In Delphi private members are visible to all the classes in the same unit.

For a member to be accessible only in its class, it needs to be declared strict private.

--ioanac

Increasing the visibility of members: Error?

"You can increase the visibility of a member in a descendent class by redeclaring it,"

So far as I can tell, this is not, in general, true. It appears only to be true of properties. So not for methods and fields.

If there *is* some syntax to achieve such elevated visibility for methods and fields, please provide a link to it. Gwideman (talk) 13:19, 22 September 2013 (PDT)

Response

We will investigate this issue and make the necessary changes.

Many thanks for your contribution to the docwiki -

KrisHouser (talk) 07:52, 25 September 2013 (PDT)

RS-43854