( Need Help ) How to change the value of private member of base class from derived class ? thank you 🐱
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { class Person { private int Age ; private string Name ; public string name { get{return Name;} set{Name = value; } } } class Student : Person { public Student(string nm) { Person.name = nm; } public void Speak() { Console.Write("Name: "+ Person.name); } } static void Main(string[] args) { Student s = new Student("Agus"); s.Speak(); } } }