If ClassB is a subclass of ClassA would it be okay if one of ClassB's ivars is an instance from ClassA? Sorry, if this is a dumb question. I just find it confusing how ClassB inherits from ClassA but it could own an instance of it.
If ClassB is a subclass of ClassA would it be okay if one of
Share
Yes, that’s good. You can have any type of ivars in any class, basically.