public static void Main()
Person Moshe = new Person("Moshe","Cohen");
Moshe.Speak("hello world");
Console.WriteLine(Moshe.MyFullName());
Person Adam = new Person("Adam","Levin");
Moshe.Speak("hello world 2");
Console.WriteLine(Adam.MyFullName());
Person.WhatIsThisClass();
private string FirstName;
public static int counter =0;
public static void WhatIsThisClass()
Console.WriteLine("this class is about persons" + counter.ToString());
public Person(string FirstName,string LastName)
this.FirstName =FirstName;
this.LastName = LastName;
public void Speak(string Message)
Console.WriteLine(Message);
public string MyFullName()
Console.WriteLine("My full name is: {0} and {1}", this.FirstName ,this.LastName ) ;
return "My full name is: " + this.FirstName + " " + this.LastName;