using System;
namespace ExampleApp
{
class Program
static void Main(string[] args)
Person personObj = new Person(); // personObj is the object of the Person class
//Note: You can create class object as many as you need with unique variable names
personObj.Name = "John"; // assign value to Name propery of Person class
personObj.Age = 25; // assign value to Age propery of Person class
Console.WriteLine(personObj.Name + " is " + personObj.Age + " years old."); // writing return value
}
// This is a class
class Person
public string Name { get; set; }
public int Age { get; set; }