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

Lobanov Dmitrij Evgenevich #23

Open
wants to merge 2 commits into
base: Lobanov_Dmitrij_Evgenevich
Choose a base branch
from

Conversation

MrLobzik
Copy link

@MrLobzik MrLobzik commented Nov 7, 2023

No description provided.


foreach (var it in weapons)
{
Console.WriteLine(it.ToString());
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Console.WriteLine(it.ToString());
Console.WriteLine(it);

private int shop;
private int cartridges;

public Weapon()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public Weapon()
public Weapon() : Weapoon("None", 1, 1)


public Weapon()
{
Model = "None";
Copy link
Contributor

Choose a reason for hiding this comment

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

переиспользуйте конструктор с большим числом параметров

Comment on lines +91 to +95
public void Recharge()
{
cartridges = shop;
Console.WriteLine("Вщик-Вщик");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

а как на него тест написать?

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