elena1234

PokemonTrainer- class Pokemon

Feb 9th, 2021 (edited)
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace PokemonTrainer
  6. {
  7.     class Pokemon
  8.     {
  9.         public Pokemon(string name, string element, int health)
  10.         {
  11.             this.Name = name;
  12.             this.Element = element;
  13.             this.Health = health;
  14.         }
  15.  
  16.         public string Name { get; set; }
  17.         public string Element { get; set; }
  18.         public int Health { get; set; }
  19.     }
  20. }
  21.  
Add Comment
Please, Sign In to add comment