using System;
namespace RickyTest
{
public class Cat
{
public string name;
public int limbs;
public int age;
public string info;
public Cat(string pName, int pLimbs, int pAge)
{
this.name = pName;
this.limbs = pLimbs;
this.age = pAge;
Console.WriteLine("A new cat is created named {0}. This cat is {1} years old and has {2} limbs", this.name, this.age, this.limbs);
}
public void SetInfo(string PInfo)
{
this.info = PInfo;
Console.WriteLine("The information has been set...'{0}'", this.info);
}
public void GetInfo()
{
Console.WriteLine(this.info);
}
public void BlurtingThingsOut()
{
Console.WriteLine("{0}", this.name);
Console.WriteLine("{0}", this.limbs);
Console.WriteLine("{0}", this.age);
Console.WriteLine("{0}", this.info);
}
}
public class MainApplication
{
static void Main()
{
Cat ricky = new Cat("Ricky", 4, 26);
ricky.SetInfo("This is the secret information");
ricky.GetInfo();
ricky.BlurtingThingsOut();
Type test=ricky.GetType();
Console.WriteLine(test.GetMethods());
}
}
}