UML - Class Diagram [closed]

1

Hello,

I recently started studying UML diagrams and I had a question about how to find out the objects .

My question is, what is the best way to identify an object? For a class can be either a noun (Client) or an action (Register Client). Thank you very much in advance.

    
asked by anonymous 18.07.2018 / 06:38

1 answer

3

You should analyze not the classes you will create in your program, but what classes will handle, remembering that objects are different from classes:

  • An object needs a class to exist;
  • A Class does not require an object to exist;

A known definition is: "An object is a term we use to represent a real-world entity."

Objects should be in your diagram, as they will have their attributes and will be manipulated according to your need for business rules.

Following the line of thought quoted by you in the question, a system that has Customer and customerCatalog, Official and employeeCount, will have as entities the Client and the Employee, as they are the entities of the "real world."

In this link you will find more about this subject: link

    
18.07.2018 / 12:52