Skip to content

Commit

Permalink
make Dog's age property uint
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuflick committed Nov 25, 2023
1 parent 0fcb999 commit ba45d72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CourseApp/DogClass/Dog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace DefaultNamespace;

public class Dog
{
private int _age;
private uint _age;

private string _name;

Expand All @@ -18,7 +18,7 @@ public string Name
set => _name = value;
}

public int Age
public uint Age
{
get => _age;

Expand Down
5 changes: 3 additions & 2 deletions CourseApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
using System;
using System.Collections.Generic;
using RpgSaga;
using DefaultNamespace;

public class Program
{
public static void Main(string[] args)
{
var rnd = new Random();
/*var rnd = new Random();
var list = new List<Hero>()
{
new Archer(),
Expand All @@ -20,6 +21,6 @@ public static void Main(string[] args)
while (true)
{
visor.Fight(list[rnd.Next(0, 2)], list[rnd.Next(0, 2)]);
}
}*/
}
}

0 comments on commit ba45d72

Please sign in to comment.