Gambas equivalent of C# Protected?

Post Reply
User avatar
sjsepan
Posts: 40
Joined: Saturday 12th October 2019 10:11pm
Location: Leeper, PA, USA
Contact:

Gambas equivalent of C# Protected?

Post by sjsepan » Saturday 02nd November 2019 8:58pm

Does anyone know if there is an equivalent to the C#.Net Protected concept in Gambas?
Specifically, a member in a parent class is marked as private to all except classes derived from the parent class.

User avatar
jornmo
Site Admin
Posts: 204
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: Gambas equivalent of C# Protected?

Post by jornmo » Saturday 02nd November 2019 9:16pm


User avatar
sjsepan
Posts: 40
Joined: Saturday 12th October 2019 10:11pm
Location: Leeper, PA, USA
Contact:

Re: Gambas equivalent of C# Protected?

Post by sjsepan » Saturday 02nd November 2019 10:21pm

jornmo wrote:
Saturday 02nd November 2019 9:16pm
I do not think so:

http://gambaswiki.org/wiki/doc/object-model#t3
I skimmed through there earlier and didn't remember seeing anything but Public and Private, but I was hoping I overlooked something.
Thanks jornmo.

UPDATE: the following covers something related to I was looking for..
3.5. Symbol Overriding
[...]
SINCE 3.12
Variables cannot be inherited.

Post Reply