Skip to content

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

Open
x-mike wants to merge 4 commits into
mainfrom
master
Open

x-mike wants to merge 4 commits into
mainfrom
master

Conversation

@x-mike

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

Copy link
Copy Markdown
Owner

No description provided.

Comment thread src/main/java/Main.java Outdated

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

Copy link
Copy Markdown

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