I have a class named SuperclassA
, and an class named ClassA
. ClassA
inherits from SuperclassA
.
SuperclassA
has got an property called something
, so a very generic not-much-saying name. In ClassA
, I want to have an property which maps to that something
of SuperclassA
.
How could I do that? I want to make absolutely sure that any access to myBetterProperty
results in accessing what's behind something
.
Assigning an value to myBetterProperty
should result in assigning one to something
, and vice versa.
How to? Pointers set up in init? How would that look like?
*self.myBetterProperty = &something;
? I'm not sure about that...