using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Programming_Console
{
/// <summary>
/// using Classes and Fileds(Access Modifiers)
/// </summary>
public class Employee
{
public int age;
}
class Program
{
static void Main(string[] args)
{
Employee emp = new Employee();
int c=emp.age = 26;
Console.WriteLine("Age of Employee is : {0}", c);
}
}
}In this code, Creating a Class and using it inside Main Method of a different Class.
