I have a project due and they are asking for a class to have a mode attribute to decide which of the two contained objects to use. It must be reflected in accessors, mutators and constructors. Can anyone help me with what this mode attribute is?
The main class has a composition relationship with the two contained objects' classes.
Aucun commentaire:
Enregistrer un commentaire