public Elephant(string myname)
public void Toot(int times)
say("toot-tooting", times, "my age is " + age);
public int Stamp(int times)
say("stamping", times, "times!");
int result = myPrivateThoughts(times );
private void say(string doing, int number, string what)
Console.WriteLine(this.name + " is " + doing + " " + number + " " + what);
private int myPrivateThoughts(int somenumber)
say("thinking of number", somenumber, "");
int calculated = somenumber - 2;
int watchthis = somenumber / calculated;
public static void Hello()
public static void Hello(int number)
Console.WriteLine("hi " + number);
public static void Main()
Elephant dumbo = new Elephant("Dumbo");
Elephant celest = new Elephant("Ms. Celest");