> I've inherited from a TList and I don't want to allow access to the
> TList.Add and TList.Insert.
> How can I hide them?
You can't... If they're virtual you can cut off their proverbials by overriding
and not calling the inherited.
Other than that you can encapsulate the TList and that way only expose
methods you want for your new base class... Given how TList is implemented
I think it was intended to be encapsulated rather than inherited from...
--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz