adamkvarnsund / Group-23

2 stars 0 forks source link

Remove getter for component #22

Open radams78 opened 1 year ago

radams78 commented 1 year ago

Encapsulation: There is no good reason for a client to have a reference to the Loadable component.

https://github.com/adamkvarnsund/Group-23/blob/0a21f926da13f0e3d501c59653f97df9a70d8b4c/src/CarRepairShop.java#L16-L18