using System;
public class Tester
{
	public class Telephone
	{
		protected string phonetype;
		public void Ring()
		{
			Console.WriteLine("Dzwoni telefon {0}...", phonetype);
		}
	}

	public class ElectronicPhone : Telephone
	{
		public ElectronicPhone()
		{
			this.phonetype = "Cyfrowy";   // Dostêp do zmiennej chronionej
		}
	}

	public void Run()
	{
		ElectronicPhone phone = new ElectronicPhone();
		phone.Ring();   // Dostêp do metody klasy bazowej
	}

	static void Main()
	{
		Tester t = new Tester();
		t.Run();
	}
}

