mercredi 7 septembre 2022

In a UML class diagram how do I show classes of two different variants with two possible values?

I am extremely sorry for my English (I'm not a native speaker).

I have an entity 'Question' (abstract) in my project. It can be asked in English and Russian. Also it can be asked by student and non-student. So, I'm looking for the perfect way to show it in my class diagram.

The only way I see now is to create four different classes (English-Student, English-NonStudent, NonEnglish-Student, NonEnglish-NonStudent). I guess, it will be the most efficient way to store them in different tables (different classes in class diagram). But perhaps, you see more elegant way. Will be very grateful for any ideas!

Aucun commentaire:

Enregistrer un commentaire