I am developing an E-Commerce Web application using C# (back-end) and JavaScript (front-end) for a computing shop. This application mainly displays each stored computer, and all information about it (model, price, image, speed, ...).
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.class
Server
that extends fromComputer
.class
Laptop
that extends fromComputer
.class
Desktop
that extends fromComputer
.
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?