Skip to content

Проектная работа номер один "Калькулятор счета" (project work number one "Calculator of bill").#1

Open
x-mike wants to merge 4 commits intomainfrom
master
Open

Проектная работа номер один "Калькулятор счета" (project work number one "Calculator of bill").#1
x-mike wants to merge 4 commits intomainfrom
master

Conversation

@x-mike
Copy link
Owner

@x-mike x-mike commented Nov 25, 2022

No description provided.


Calculator calculator = new Calculator (numberOfPeoples);
Product product = new Product();
Formatting formatting = new Formatting();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно сделать методы класса Formatting static, так как это служебный класс и тогда не будет необходимости создавать экземпляр этого класса для обращения к его методам. В целом то же самое можно сделать с классом Calculator, немного поменяв структуру программы.

… final output. The logic of the "Formatting" and "Calculator" classes has been corrected in accordance with the service classes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants