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