I am trying to design software for video rental. I would like Movie
class to have list of Actor *
who acted in the movie. I would also like Actor
to have list of Movie *
, in which he has acted.
-
How to ensure that there is no inconsistency between the two lists?
-
How to initialize
Movie
object, whoseActor
Object is not present[but will have to be created]?
Aucun commentaire:
Enregistrer un commentaire