Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hw5 #1172

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Hw5 #1172

wants to merge 12 commits into from

Conversation

Oleg520
Copy link

@Oleg520 Oleg520 commented Aug 9, 2024

No description provided.

import java.util.ArrayList;
import java.util.List;

public class HumanBuilder<E extends FamilyTreeItem<E>> {
Copy link
Owner

Choose a reason for hiding this comment

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

В чем смысл обобщения, если класс ничего кроме Human все равно никогда не создаст?


import java.time.LocalDate;

public class Service<E extends FamilyTreeItem<E>>{
Copy link
Owner

Choose a reason for hiding this comment

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

обобщение можно убрать. Сервис должен быть именно для работы с людьми

switch (choice){
case "1":
String sChild, sParent;
System.out.println("Введите имя родителя");
Copy link
Owner

Choose a reason for hiding this comment

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

презентер не должен выводить текст в консоль. за работу с консолью отвечает view

}

public boolean addParent(String choice){
Scanner scanner = new Scanner(System.in);
Copy link
Owner

Choose a reason for hiding this comment

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

презентер не должен работать со сканером. За общение с пользователем отвечает view

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