Hi,
I have question about the relation between: Domain model in the assignment and the class diagram.
Suppose there are domain objects like say Dog, Cat and Elephant. It doesn't make sense to represent them as classes in the Class diagram if they do not exhibit their own specialized behavior. If my system doen't makes any difference if the Animal is Cat or Dog or Elephant to define the behavior, can we use only a class like Animal with a properties in it having animalType/animalName ?
On the database side, I think Dog, Cat, Elephant would only be rows in Animal table.
So is it allowed to exclude the domain objects listed in the requirement and use a generic type instead in the class diagram?
I have question about the relation between: Domain model in the assignment and the class diagram.
Suppose there are domain objects like say Dog, Cat and Elephant. It doesn't make sense to represent them as classes in the Class diagram if they do not exhibit their own specialized behavior. If my system doen't makes any difference if the Animal is Cat or Dog or Elephant to define the behavior, can we use only a class like Animal with a properties in it having animalType/animalName ?
On the database side, I think Dog, Cat, Elephant would only be rows in Animal table.
So is it allowed to exclude the domain objects listed in the requirement and use a generic type instead in the class diagram?