the design seem to:
- separate data into types
- each type is associated with a class
- methods are static, they do not get inherited by instanciated objects
- instances of a class (type) can only be manipulated by the static methods provided by the class associated with their type
the classes purpose seem to only be namespacing the methods/procedures used by their instances
the approach seem procedural
const object = new TypeA();
TypeA.doSomething(object);
TypeA.doSomethingElse(object);
Aucun commentaire:
Enregistrer un commentaire