Pokemon start
This commit is contained in:
parent
6c5e2387e7
commit
3a981d068f
|
@ -1 +1,12 @@
|
|||
|
||||
namespace Pokemon
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var pikachu = new Pikachu();
|
||||
Console.WriteLine($"Pikachu har {Pikachu.Health}hp og er level {Pikachu.Level}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
7
Emne 3/Pokemon/pokemon.cs
Normal file
7
Emne 3/Pokemon/pokemon.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Pokemon;
|
||||
|
||||
public class Pikachu
|
||||
{
|
||||
internal static int Health = 50;
|
||||
internal static int Level = 21;
|
||||
}
|
Loading…
Reference in a new issue