- One organization can have many environments.
- One environment can have many Applications.
- One application can have many Policis.
I created class of each entities i.e.
- class Organization,
- class Environment,
- class Application,
- class Policy
Now I want to apply policies to Application. One policy should have one Policy
class object.
Inheritance will not work, because every policy, I will have new Application
, Environment
, Organization
object.
Can we do aggregation here? Need help on this
1: https://i.stack.imgur.com/HYIak.png
Aucun commentaire:
Enregistrer un commentaire