i'm programming in JAVA and i've a question about the composite pattern: in all samples found on web, i've saw that the composite pattern is used to model just 2 "entity"; but i have to model 3 entity (es. course, section and subsection).
Can i use this pattern or i have to change my solution? i've tried with 3 entity (1 leaf, 1 component & 1 composition of component).
PS: sorry for my english and TY
Aucun commentaire:
Enregistrer un commentaire