[Gambas-user] inheritance problems

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Feb 4 20:34:57 CET 2012


> thats what i want to know it seems that public variables are copy when a
> class is inherited
> and the value they where when you inherit them is only used from then on
>
> i made a test app i must be doing something wrong
> this app just uses integers
>

There are two objects, myc1 and myc2.
And you increase value of myint of myc1.

Only declarations of variables are inherited, not values of them unless
their are static.

What you expect to happen?

Jussi



More information about the User mailing list