[Gambas-user] OO design problem?
Jussi Lahtinen
jussi.lahtinen at ...626...
Mon Aug 29 00:13:01 CEST 2016
> It's not unnecessary in fact. Imagine if a children not implement the
> property... then it's the property in the parent that is readed.
>
Yes I know, but in my case it is unnecessary.
> Another way is to not declare the property in the parent and use an
> object type to walk the children.
>
>
> Dosometing(hChild as Myclass)
>
> dim hObj as Object = hChild
>
> try hObj.DoSomethingElse()
>
> end
>
Thanks for the suggestion. Though, I hope something more elegant...
Jussi
More information about the User
mailing list