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>
class Employee
{
private int age;
public int Myage()
{
return age;
}
public void setAge(int setage)
{
age = setage;
}
}
class Program
{
static void Main(string[] args)
{
Employee emp = new Employee();
emp.setAge(35);
Console.WriteLine("Age of Employee is : {0}", emp.Myage());
Console.ReadKey();
}
}
}This code show the class and Methods in C# language.
