RickyWh
public text v1 · immutableusing 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 class MainApplication
{
static void Main()
{
Cat ricky = new Cat("Ricky", 4, 26);
}
}
}