Exemplo n.º 1
0
 /// <summary>
 /// WoodPecker constructor, passed to it is the property values
 /// This constructor calls the bird constructor (as a WoodPecker is a bird)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="typeOfBird">As marchsandpiper is a bird, type of bird needs to be passed</param>
 /// <param name="typeOfBeak">This is a marchsandpiper property</param>
 public WoodPecker(string name, int age, Gender gender, BirdType typeOfBird, BeakType typeOfBeak) : base(name, age, gender, typeOfBird)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("Tree insects once a day.");
     foodSchedule.Add("Tree liters of water once a week");
     TypeOfBeak = typeOfBeak;
 }
Exemplo n.º 2
0
 /// <summary>
 /// GoldenRetriever constructor, passed to it is the property values
 /// This constructor calls the dog constructor (as a GoldenRetriever is a dog)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="numberOfTeeth">As a goldenretriever is a dog number of teeth needs to be passed</param>
 /// <param name="numberOfLegs">As a goldenretriever is a dog number of legs needs to be passed</param>
 /// <param name="teilLength">As a goldenretriever is a dog teil length needs to be passed</param>
 /// <param name="furType">This is a property of goldenretriever</param>
 public GoldenRetriever(string name, int age, Gender gender, int numberOfTeeth, int numberOfLegs, int teilLength, string furType) : base(name, age, gender, numberOfTeeth, numberOfLegs, teilLength)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("Fry one a day for three times a day.");
     foodSchedule.Add("Drink when nesessary.");
     FurType = furType;
 }
Exemplo n.º 3
0
 /// <summary>
 /// MarchSandpiper constructor, passed to it is the property values
 /// This constructor calls the bird constructor (as a MarchSandpiper is a bird)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="typeOfBird">As marchsandpiper is a bird, type of bird needs to be passed</param>
 /// <param name="wingSpan">This is a marchsandpiper property</param>
 /// <param name="plumage">This is a marchsandpiper property</param>
 public MarchSandpiper(string name, int age, Gender gender, BirdType typeOfBird, int wingSpan, Plumage plumage) : base(name, age, gender, typeOfBird)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("One insect for once a week.");
     WingSpan = wingSpan;
     Plumage  = plumage;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Poodle constructor, passed to it is the property values
 /// This constructor calls the dog constructor (as a Poodle is a dog)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="numberOfTeeth">As a poodle is a dog number of teeth needs to be passed</param>
 /// <param name="numberOfLegs">As a poodle is a dog number of legs needs to be passed</param>
 /// <param name="teilLength">As a poodle is a dog teil length needs to be passed</param>
 /// <param name="cosyDog">This is a property of poodle</param>
 public Poodle(string name, int age, Gender gender, int numberOfTeeth, int numberOfLegs, int teilLength, bool cosyDog) : base(name, age, gender, numberOfTeeth, numberOfLegs, teilLength)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("Saucige once a day.");
     CosyDog = cosyDog;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Piraya constructor, passed to it is the property values
 /// This constructor calls the fish constructor (as a Piraya is a fish)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="fishFamily">As an piraya is a fish, we need to pass fishFamily</param>
 /// <param name="numberOfFins">As an piraya is a fish, we need to pass number of fins</param>
 /// <param name="whyIDangerous">This is a piraya property</param>
 public Piraya(string name, int age, Gender gender, FishFamily fishFamily, int numberOfFins, string whyIDangerous) : base(name, age, gender, fishFamily, numberOfFins)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("Frosen krill every day");
     WhyIDangerous = whyIDangerous;
 }
Exemplo n.º 6
0
 /// <summary>
 /// GoldFish constructor, passed to it is the property values
 /// This constructor calls the fish constructor (as a GoldFish is a fish)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="fishFamily">As a goldfish is a fish, we need to pass fishFamily</param>
 /// <param name="numberOfFins">As a goldfish is a fish, we need to pass number of fins</param>
 /// <param name="iDoForget">This is a propewrty of goldfish</param>
 public GoldFish(string name, int age, Gender gender, FishFamily fishFamily, int numberOfFins, bool iDoForget) : base(name, age, gender, fishFamily, numberOfFins)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("Krill every day.");
     IDoForget = iDoForget;
 }
Exemplo n.º 7
0
 /// <summary>
 /// BullFinch constructor, passed to it is the property values
 /// This constructor calls the bird constructor (as a BullFinch is a bird)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="typeOfBird">As bullfinch is a bird, type of bird needs to be passed</param>
 /// <param name="whatToSing">This is a property of bullfinch</param>
 public Bullfinch(string name, int age, Gender gender, BirdType typeOfBird, string whatToSing) : base(name, age, gender, typeOfBird)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("One insect for three times a day.");
     WhatToSing = whatToSing;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Crow constructor, passed to it is the property values
 /// This constructor calls the bird constructor (as a Crow is a bird)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="typeOfBird">As bullfinch is a bird, type of bird needs to be passed</param>
 /// <param name="whatSilverDoCrowLike">This is a crow property</param>
 public Crow(string name, int age, Gender gender, BirdType typeOfBird, string whatSilverDoCrowLike) : base(name, age, gender, typeOfBird)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("Two insect for twice a day.");
     WhatSilverDoCrowLike = whatSilverDoCrowLike;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Tarpan constructor, passed to it is the property values
 /// This constructor calls the Horse constructor (as a Tarpan is a horse)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="numberOfTeeth">A Tarpan is basicaly a mammal, thats why number of teeth is passed</param>
 /// <param name="teilLength">As Tarpan is a horse teilLength (of horse needs to be passed)</param>
 /// <param name="withers">As Tarpan is a horse withers (of horse needs to be passed)</param>
 /// <param name="numberOfLegs">As Tarpan is a horse number of legs (of horse needs to be passed)</param>
 public Tarpan(string name, int age, Gender gender, int numberOfTeeth, int teilLength, int withers, int numberOfLegs, bool sturdy) : base(name, age, gender, numberOfTeeth, teilLength, withers, numberOfLegs)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("Cheese and saucige once a week.");
     Sturdy = sturdy;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Pony constructor, passed to it is the property values
 /// This constructor calls the Horse constructor (as a Tarpan is a horse)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="numberOfTeeth">A Pony is basicaly a mammal, thats why number of teeth is passed</param>
 /// <param name="teilLength">As Pony is a horse teilLength (of horse needs to be passed)</param>
 /// <param name="withers">As Pony is a horse withers (of horse needs to be passed)</param>
 /// <param name="numberOfLegs">As Pony is a horse number of legs (of horse needs to be passed)</param>
 /// <param name="howLikeToRideBack">This is a property of pony</param>
 public Pony(string name, int age, Gender gender, int numberOfTeeth, int teilLength, int withers, int numberOfLegs, string howLikeToRideBack) : base(name, age, gender, numberOfTeeth, teilLength, withers, numberOfLegs)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("Hay and water once a week.");
     HowLikeToRideBack = howLikeToRideBack;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Schaefer constructor, passed to it is the property values
 /// This constructor calls the dog constructor (as a Schaefer is a dog)
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="age">Age</param>
 /// <param name="gender">Gender</param>
 /// <param name="numberOfTeeth">As a schaefer is a dog number of teeth needs to be passed</param>
 /// <param name="numberOfLegs">As a schaefer is a dog number of legs needs to be passed</param>
 /// <param name="teilLength">As a schaefer is a dog teil length needs to be passed</param>
 /// <param name="useCase">This is a property of Schaefer</param>
 public Schaefer(string name, int age, Gender gender, int numberOfTeeth, int numberOfLegs, int teilLength, AnimalUseCases useCase) : base(name, age, gender, numberOfTeeth, numberOfLegs, teilLength)
 {
     foodSchedule = new FoodSchedule();
     foodSchedule.Add("Cheese and saucige once a week.");
     UseCase = useCase;
 }