?? employee.cs
字號(hào):
using System;
namespace chapter3
{
/// <summary>
/// Employee 的摘要說(shuō)明。
/// </summary>
public class Employee : Person
{
private string department;
private decimal salary;
public Employee(string n ,int a,long i,string d,decimal s):base(n,a,i)
{
//age=a; //錯(cuò)誤表示,private 修飾不能被派生類訪問(wèn)
department =d ;
salary=s;
}
public override void display()
{
base.display();
Console.WriteLine("Department : {0}",department);
Console.WriteLine("Sarlary: {0}",salary);
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -