How to get objects to interact without inheritence in separate classes?
I have 3 classes inheriting from each other. so class SpecialAccount inherits from Account and class GoldAccount ingerits from SpecialAccount. I have produced a new class Customers that needs to use the exisiting 'accounts' objects and their values but cannot find any material on how to do this without inheritence.:mad: All classes are public - so it should be possible.
So I would need to do something like cast the objects to a new reference?
or get and set the objects?
Im lost :confused: