using System; using System.Collections.Generic; using System.Text; namespace DemoOOP3 { // Child class to inherit from the Animal // parent class class Tiger : Animal { // Attributes private int _numberOfClaws; // Constructors public Tiger() // Default constructor { _numberOfClaws = 20; } // name and age are given default values public Tiger(int numberOfClaws) { _numberOfClaws = numberOfClaws; } // Store the name and age in the parent class // attributes within this object...pass // the values to Animal constructor (i.e. base) public Tiger(string name, int age, int numberOfClaws) : base(name, age) // parent class constructor { _numberOfClaws = numberOfClaws; } // Properties // Methods public int GetNumberOfClaws() { return _numberOfClaws; } public void SetNumberOfClaws(int numberOfClaws) { _numberOfClaws = numberOfClaws; } // This a method that makes the Tiger class // different from the general Animal class public string Roar() { return "Roar...."; } } }