A computer can be a desktop, a laptop, or a server. Each type of computer may have additional parameters. For example, a laptop has a screen size whereas a desktop or a server not. Or desktops and servers have power supplies whereas laptops not...
For this purpose, the UML diagram will mainly contain 4 classes:
An abstract class
Computer, and contains the common properties and methods.
Serverthat extends from
Laptopthat extends from
Desktopthat extends from
This UML diagram will be implemented in principle on the back-end side (C#).
My question is, what about the front-end (JS): Shall I use the same classes? Or does the front-end need another UML diagram? Or does the front-end need additional classes in the same UML diagram, that must be connected to the 4 initial classes somehow?