[Gambas-user] protected for a variable inherited from a class

Mayost Sharon sharon at 455.co.il
Thu Apr 20 21:23:23 CEST 2023


Hello

Is there a way to access a variable inherited from class1
but
that it will not be visible to other non-inherited classes

something like this:
https://www.w3schools.com/cpp/cpp_inheritance_access.asp

I tried to think maybe with: STATIC PRIVATE
But it's not working


Many thanks to everyone


More information about the User mailing list