using System;
public class Student
{
//class variable
public string name {get;set;}
public int age {get;set;}
//class methods
public void PrintName()
Console.WriteLine("Student name: "+name);
Console.WriteLine("Student age: "+age);
}
public class Program
public static void Main()
//create Student class object (student)
Student student = new Student();
//assign value to student class variables, using object
student.age=15;
student.name="John";
//call student class method using object.
student.PrintName();