All pastes #907850 Raw Edit

RickyWh

public text v1 · immutable
·published 2008-02-17 22:51 UTC
rendered paste body
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 class MainApplication
	{
		static void Main()
		{
			Cat ricky = new Cat("Ricky", 4, 26);
		}
	}
}