class Person
{
public string name;
public int age;
public override string ToString()
{
return "Name: " + name + ", age: " + age.ToString();
}
}
void PrintObject(object obj)
{
string objName = "Object is: " + obj.ToString();
Console.WriteLine(objName);
}