Skip to content

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