In the orientation of the object (and class) everything is considered as an object, not even objects !!!
Modules, namespaces, and libraries are one of the things that UML Creators do not seem to notice.
Many designers represent global elements enclosed in a file, namespace or module, representing the module as a separate object or class.
I languages, such as Javascript, modules, are enclosed in a single object or global object.
This is a general example of how non-OO can be implemented.
...................................................................... ..+----------------------------------------------------------------+.. ..| <<module>> |.. ..| Strings |.. ..+----------------------------------------------------------------+.. ..| [+] String[]: Letters <<constant>> <<global>> |.. ..| [+] String[]: Digits <<constant>> <<global>> |.. ..+----------------------------------------------------------------+.. ..| [+] String: ToUppercase(String Value) <<function>> <<global>> |.. ..| [+] String: ToLowercase(String Value) <<function>> <<global>> |.. ..+----------------------------------------------------------------+.. ......................................................................
Greetings.
source share