Why the compiler is giving me an error of Age ?
Base Class using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Assignment_3_Csharp { internal class Person { private int age; public virtual int SETAGE { get { return age; } } } } Another Class ng System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Assignment_3_Csharp { internal class STUDENTANDTEACHERTEST { static void Main(string[] args) { Person person = new Person(); Console.WriteLine("Hello"); Student student = new Student(); student.Age = 21; Console.WriteLine("Hello , my age is : {0} "); } } }