⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 employee.cs

📁 画图的作用 以及其他的类似图型转换的
💻 CS
字号:
using System;

namespace chapter3
{
	/// <summary>
	/// Employee 的摘要说明。
	/// </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; //错误表示,private 修饰不能被派生类访问
		department =d ;
			salary=s;

		}
		public override void display()
		{
			base.display();
			Console.WriteLine("Department : {0}",department);
		Console.WriteLine("Sarlary: {0}",salary);
		}

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -