U
U
user_of_toster2021-04-01 12:36:19
OOP
user_of_toster, 2021-04-01 12:36:19

Lack of methods on entities == bad design?

I am writing a simple code, it turned out that the entity has only fields with data, and everything else - create \ delete \ edit moved to the application logic.

Is this phenomenon normal?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2021-04-01
@saboteur_kiev

Data fields are called data structures.
Fields with data and methods for working with this data are called classes/objects.
All.

V
Vladimir Korotenko, 2021-04-01
@firedragon

more than that, here is an article that describes these concepts well
https://habr.com/ru/post/268371/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question