[Gambas-user] difference ME and SUPER with inherit
Mayost Sharon
sharon at 455.co.il
Thu Mar 9 17:59:21 CET 2023
Hello
first thanks
I could not understand your explanation
also
I tried to take the example of the documentation:
http://gambaswiki.org/wiki/lang/super
When I run it gives me an error:
INCORRECT OVERRIDEN IN CLASS
Attached is an example I tried to run
Thanks
---------- Original Message -----------
From: BB <adamnt42 at gmail.com>
To: user at lists.gambas-basic.org
Sent: Fri, 10 Mar 2023 02:40:03 +1030
Subject: Re: [Gambas-user] difference ME and SUPER with inherit
> Yes there is.
>
> If you override a parent property or public method then you can use
> Super to force the reference to the parent item and Me to refer to the
> local one. Otherwise they just refer to the visible one, if its in the
> parent then that one is used with either Me or Super.
>
> b
>
> On 10/3/23 4:02 am, Mayost Sharon wrote:
> > Hello
> > When I inherit a command
> > Does it make a difference if I use:
> > ME or Super
> > Attached is an example that I don't see a difference
> > For example, I change ListBox.Clear which will clear the entire list except for the rhyme "c"
> > Both when I use me and when I use super it works
> > So the question is if there is a difference between them?
> >
> > Thank you
> >
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
------- End of Original Message -------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: super2.tar.xz
Type: application/x-xz
Size: 12860 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230309/2288c1f4/attachment.xz>
More information about the User
mailing list