using System;
namespace Cat
{
///
/// Summary description for Class1.
///
class Class1
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
Cat c = new Cat();
Cat fluffy = new Cat("Fluffy", "Cheshire", 8);
Cat oldie = new Cat("Oldie", "Red", 20);
}
}
public class Cat
{
public Cat()
{
Console.WriteLine("Plain cat");
}
public Cat(string inName, string inBreed, int inAge)
{
if (inAge > 9)
{
Console.WriteLine("Catch a mouse, " + inName + " , you good cat!");
}
else
{
Console.WriteLine("Good little kitty, what a good " + inBreed);
}
}
}
}