> I'm not even sure if there is a language which allows demoting
> visibility of inherited class members. It would seem odd to me. Just
> my 2c, of course. ;-)
C++, C#, VB.Net are three I know of. I think Java also allows it.
In these languages, AFAIK, it's allowed, the compiler generates a
warning, but the visibility does not actually change. You would still
be able to access the member, if not directly on a variable of the
descendant type then certainly by typecasting to the ancestor type.
HTH
TOndrej
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal