diff --git a/Emne 3/Pokemon/Program.cs b/Emne 3/Pokemon/Program.cs index 5f28270..d94f691 100644 --- a/Emne 3/Pokemon/Program.cs +++ b/Emne 3/Pokemon/Program.cs @@ -1 +1,12 @@ - \ No newline at end of file +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}"); + } + } +} + diff --git a/Emne 3/Pokemon/pokemon.cs b/Emne 3/Pokemon/pokemon.cs new file mode 100644 index 0000000..7e9a4d7 --- /dev/null +++ b/Emne 3/Pokemon/pokemon.cs @@ -0,0 +1,7 @@ +namespace Pokemon; + + public class Pikachu +{ + internal static int Health = 50; + internal static int Level = 21; +} \ No newline at end of file