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