Exemple #1
0
 public Animal(string _name, AnimalCategories _cartegory, bool fly = false, bool walk = false, bool swim = false, bool crawl = false)
 {
     this.Name     = _name;
     this.category = _cartegory;
     this.CanFly   = fly;
     this.CanWalk  = walk;
     this.CanSwim  = swim;
     this.CanCrawl = crawl;
 }
Exemple #2
0
 public Crocodile(string name, AnimalCategories category)
     : this(name)
 {
     Cathegory = category;
 }
Exemple #3
0
 public Platypus(string name, AnimalCategories category)
     : this(name)
 {
     Cathegory = category;
 }
Exemple #4
0
 public Animal()
 {
     this.category = AnimalCategories.Mammal;
 }
Exemple #5
0
 public WildDuck(string name, AnimalCategories category)
     : this(name)
 {
     Cathegory = category;
 }