-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: Lobanov_Dmitrij_Evgenevich
Are you sure you want to change the base?
Lobanov Dmitrij Evgenevich #23
Conversation
|
||
foreach (var it in weapons) | ||
{ | ||
Console.WriteLine(it.ToString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Console.WriteLine(it.ToString()); | |
Console.WriteLine(it); |
private int shop; | ||
private int cartridges; | ||
|
||
public Weapon() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public Weapon() | |
public Weapon() : Weapoon("None", 1, 1) |
|
||
public Weapon() | ||
{ | ||
Model = "None"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
переиспользуйте конструктор с большим числом параметров
public void Recharge() | ||
{ | ||
cartridges = shop; | ||
Console.WriteLine("Вщик-Вщик"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а как на него тест написать?
No description provided.