Which correctly implements the relationship shown in the diagram?
A.
class Cat {
Dog d;
}
class Dog { }
B.
class Cat { }
class Dog {
Cat c;
}
C.
class Cat { }
class Dog { }
D.
class Cat {
Dog d;
}
class Dog {
Cat c;
}
Which correctly implements the relationship shown in the diagram?
A.
class Cat {
Dog d;
}
class Dog { }
B.
class Cat { }
class Dog {
Cat c;
}
C.
class Cat { }
class Dog { }
D.
class Cat {
Dog d;
}
class Dog {
Cat c;
}