In OOP, consider the example case of a global class like Math
with methods like Math.abs()
, Math.sin()
, Math.floor()
, or in general any kind of class that cannot be instantiated but provides a group of "utility" functions.
Such a class is often implemented as a "static" class with "static" methods that can be invoked directly from the class itself (this depending on the programming language).
In software design, is there a specific design pattern for this?
Aucun commentaire:
Enregistrer un commentaire