[Gambas-user] inheritance problems

Shane Powell shanep1967 at ...169...
Sat Feb 4 07:16:17 CET 2012


On 04/02/12 15:57, nando wrote:
> How can it be empty AND have elements in it?
>
>
> ---------- Original Message -----------
> From: Shane Powell<shanep1967 at ...169...>
> To: mailing list for gambas users<gambas-user at lists.sourceforge.net>
> Sent: Sat, 04 Feb 2012 12:05:24 +1100
> Subject: [Gambas-user] inheritance problems
>
>> I have this in my program
>>
>> class 1
>>     public array of class 2
>>
>> class 2
>>       inherits class 1
>>       access array of class 2 in class 1
>>       but array is empty but i know it has elements in it
>>
>> what am i doing wrong ?
>>
>> ------------------------------------------------------------------------------
>> 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
> ------- End of Original Message -------
>
>
> ------------------------------------------------------------------------------
> 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
>
>
>
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClassTest-0.0.1.tar.gz
Type: application/x-gzip
Size: 4938 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120204/2c4aac76/attachment.bin>


More information about the User mailing list