class People
{
public int Age { get; private set; }
public string FirstName { get; private set; }
public string LastName { get; private set; }
public People(int age, string firstName, string lastName)
{
Age = age;
FirstName = firstName;
LastName = lastName;
}
public void Present()
{
Console.WriteLine($"Hello, my name is {FirstName} {LastName}. I'm {Age} years old.");
}
}
People Me = new People(21, "Corentin", "Nelhomme");
Me.Present();
Pinned Loading
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.