[Gambas-user] help with inherits using serial port

Leonardo Salazar leonardo.a.salazar at gmail.com
Wed Aug 1 16:18:36 CEST 2018


I liked the idea too, also work in java but in gambas the subject of the
inheritance is not very clear to me.

2018-08-01 9:46 GMT-04:00 PICCORO McKAY Lenz <mckaygerhard at gmail.com>:

> i feel that i are the only that ask for real problems or my questions are
> outside of this world
>
> maybe i try inherits the common operations inside each class and determine
> class type when use the main class
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2018-07-31 17:15 GMT-04:00 PICCORO McKAY Lenz <mckaygerhard at gmail.com>:
>
>> hello, today I have another case, I want to implement inheritance to the
>> common code with the serial port printing.
>>
>> What I want to do is to have the procedures to open, close and write to
>> the serial port in one class, and two others that inherit these functions,
>> then one of the inheritors writes "A" to the port while the other writes
>> "B" to the port but the writing functions should be called the same...
>>
>> i attached project with minimal comments hope someone will help with this!
>>
>> the firts problem its that i received "'canot write "stream are closed"
>> why?
>>
>> the second problem its that i cannot got any stream event when i do not
>> have stream errors
>>
>> Lenz McKAY Gerardo (PICCORO)
>> http://qgqlochekone.blogspot.com
>>
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180801/e81fe471/attachment-0001.html>


More information about the User mailing list