using System;
//public class Program
//{
// public static void Main()
// {
// Person cool_person;
// cool_person = new Person();
// }
//}
public class Program
{
public static void Main()
Person cool_person; /* new instance of Person named cool_person (Person class defined below) */
cool_person = new Person(2); /* add "John" as a new property of cool_person */
Console.WriteLine(cool_person.GetYearofBirth);
}
//public class Person
//public Person()
public class Person
/* these are constructors for new Person property, NOT method. Person property where the computer expects a string, a string called firstName which we use placeholder1
to reference */
// public Person(string firstName)
// placeholder1 = firstName;
// public string placeholder1
// get;
// set;
// /* this is the new method that returns the placeholder1 value */
// public string GetFullName()
// return placeholder1;
public Person(int firstAge)
placeholder2 = firstAge;
public int placeholder2
get;
set;
public int GetYearofBirth()
return placeholder2;