ddng.net
当前位置:首页 >> 定义一个EmployEE类 >>

定义一个EmployEE类

public class Employee{ String companyName; // 单位名称 String name; // 姓名 String address; // 街道地址 String city; // 城市 String mailCode; // 邮编 char sex; // 性别 void change_name(String name){ name = "需要修改的名字"; this.

public class employee { private string id; private string name ; private int age ; private boolean sex; private string phone ; private float salary; public employee() { } public employee(string id,string name,int age,boolean sex ,string phone , float salary,)

public class Employee implements Comparable{ private String name; private int age; private double sarlay; public Employee(){} public Employee(String name,int age,double sarlay){ this.name=name; this.age=age; this.sarlay=sarlay; } public String

packagecom.aaron.help;publicclassEmployee{privateStringid; privateStringname; privateintage; privatebooleansex; privateStringphone; privatefloatsalary;publicEmployee(){}publicEmployee(StringsId,StringsName,intsAge,booleansSex,

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WindowsFormsApplication1 { public class Employee { private string name; private byte age; private string job; public enum EnumJob { 开发工程

public class Employee { public static double TotalSalary { get; set; } public double Salary { get; set; } public string EmployeeName { get; set; } /// <summary> /// 表示Employee的实例构造函数 /// </summary> /// <param name="empName"></param>

class Employee { private String id; private String name; public static int employeeCount=35; public String getId(){return this.id;} public void setId(String id){this.id=id;} public String getName(){return this.name;} public void setName(String id){this.name=name;} }

public class Employee { private String name; private Float pay; public Employee() { } public Employee(String name) { this.name=name; } public Employee(Float pay) { this.pay=pay; } public Employee(String name,Float pay) { this.pay=pay; this.name=

Employee.h #pragma once class Employee { public: Employee(char *Name,char *Street,char *City,char *Province,char *PostCode); void ChangeName(char *NewName); void Show(); protected: char m_szName[32]; private: char m_szStreet[128];

public class emploee { private int id; private String name; private float salary; public emploee(int id, String name, float salary) { super(); this.id = id; this.name = name; this.salary = salary; } public emploee() { super(); } public int getId() { return id; } public

网站首页 | 网站地图
All rights reserved Powered by www.ddng.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com