{}
run-icon
Main.cs
using System; public class HelloWorld { public static void Main(string[] args) {} } public class Father { protected string data = ""; } public class Son: Father {} public class Daughter: Father { public void iCanSeeBrothersProtected(Son brother) { Console.WriteLine(brother.data); } }
Output