[Gambas-user] inheritance problems

Shane Powell shanep1967 at ...169...
Sun Feb 5 00:17:37 CET 2012


On 05/02/12 06:34, Jussi Lahtinen wrote:
>> 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
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
I'm obviously looking at this inheritance thing all wrong back to the 
drawing board

thanks.





More information about the User mailing list