I am in a design patterns course right now, and my professor mentioned that there are some cases where using a static class with static functions to do all the calculations and then having separate object classes to store the data to be calculated on could be most efficient. How practical is this approach? I know there would be tight coupling between the static class and the objects, but would this actually give you a performance boost if the calculations are lengthy?
Aucun commentaire:
Enregistrer un commentaire