Is a "domain object" any class that represents business rules?

I came across the term “domain object” and found several definitions on Google, but I just want to make sure my understanding is correct.

Is this just any class that represents business rules, because the word "domain" usually means rules that are specific to some local problems, such as how to calculate income tax.

So, the domain objects for calculating income tax will be the classes that you write to represent all tax rules?

+3
source share
2 answers

. TaxPayer. Taxes, Domain Service, , , .

+2

, -. . , , . , - , . , , .

+2

Source: https://habr.com/ru/post/1715749/


All Articles