I created a Class Diagram. This is just a concept but i want to know if the relationship are correct and if i fully understand it.
ClassBBis composition only in case the instance of
ClassAAis stored inside
ClassAAand not shared with external entities. In this case it would be good OO practice to hide this implementation detail and perform the necessary initialization inside the
ClassAA's constructor or a dedicated