Tag Archives: NET
Encapsulation Using Properties in C#.NET / ASP.NET
Hi, Let’s see how encapsulation can be implemented using properties in C#.NET/ASP.NET. Let’s see the code first. using System; public class Student { private int stud_id = -1; public int ID { get { return stud_id; } set { stud_id = value; } } private string stud_name = string.Empty; public string Name { get { return stud_name; }… Read More »