Creating the Cat Class

the Cat Class

class Cat:Animal
{
    public Cat()
    {
        AnimalType = "Cat";
    }
    public void Sleep()
    {
        MessageBox.Show("Sleeping ZZZ");
    }
} 
-   var b = new Animal();
    var b = new Cat();
    b.Sleep(); 


Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com