|
Hi,
Say I have a class called Cat, and a class called Fish.
All Cats eat Fish. Eats is a property of Cat. It has a value of Fish.
Now I have an instance of Cat called My_Cat. And I have an instance of Fish called My_Fish. My_Cat eats Fish, so it eats My_Fish by default.
However when I create the property : Eats on the Cat class, then My_Fish is not in the Indirect_Eats of My_Cat.
How do I implement that "My_Cat eats My_Fish" without having to explicitly set the property Eats on My_Cats?
|