In Romeo and Juliet, Juliet laments: "Romeo, Romeo/Wherefore art thou Romeo?/Deny thy father and refuse thy name! Or, if thou wilt not, be but sworn my love,/and I'll no longer be a Capulet." We can embody Juliet's problem in C++ code as follows:
Now, when she says, "Deny thy father and refuse thy name!" she suggests the following:
Why does this not solve her problem? What is the true solution to Juliet's problem?
Which of the following concepts belong in an inheritance (is-a-kind-of) relationship? Which belong in containment (has-a) relationships? Which belong in instantiation (is-an-instance-of) relationships? Draw a diagram.