so I was partly correct. although I didn't know, that when you upcast to a base you access the base field and that the field can be declared in the base and in extended types.
I thing it would be be better to access the base with a super or a self rather than a cast. But That is just my opinion "not an experts' ".
Don't bother, I'll just stick to learning. :-)
I thing it would be be better to access the base with a super or a self rather than a cast. But That is just my opinion "not an experts' ".
Don't bother, I'll just stick to learning. :-)