Esempio n. 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;
 }
Esempio n. 2
0
 public Crocodile(string name, AnimalCategories category)
     : this(name)
 {
     Cathegory = category;
 }
Esempio n. 3
0
 public Platypus(string name, AnimalCategories category)
     : this(name)
 {
     Cathegory = category;
 }
Esempio n. 4
0
 public Animal()
 {
     this.category = AnimalCategories.Mammal;
 }
Esempio n. 5
0
 public WildDuck(string name, AnimalCategories category)
     : this(name)
 {
     Cathegory = category;
 }