using System;
namespace MySpecifiers
{
class Demo
{
protected string name = "Website";
protected void Display(string str)
{
Console.WriteLine("Tabs: " + str);
}
}
class Test : Demo
{
static void Main(string[] args)
{
Test t = new Test();
Console.WriteLine("Details: " + t.name);
t.Display("Product");
t.Display("Services");
t.Display("Tools");
t.Display("Plugins");
}
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265879.html