Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 653 Bytes

INFORMATION-EXPERT.md

File metadata and controls

16 lines (11 loc) · 653 Bytes

Information Expert

Problem

The system should aggregate, count information in the place where it is located

Solution

Assign the duty of processing, aggregating, accumulating information to the N-th class (Information Expert), who has access to the information of the class with which you are going to carry out the above described operations

Recomendation

"Information Experts" can be no one class, but more

How it works ?

Into information-expert.ts we have 3 classes - 1) Calculator, 2) Check, 3) Product; Product has title && price; Check has amount of product; Calculator has a discount on some product;

When to use ?

Everytime