So, I have two classes. I am wondering if I can have two types of objects of Class A:
- normal objects of Class A,
- objects of class A that inherit Class B's behavior whilst retaining their own,
without creating a third Class.
Is this possible?
Class A in its basic form does not have all the features of Class B, therefore extending Class B is not an option.
I am using PHP btw.