namespace XYZ_System { class FullTimeLectureClass : Lecturer { private double basicSalary; public Double _basicSalary { get { return basicSalary; } set { basicSalary = value; } } private Double allowance; public Double _allowance { get { return allowance; } set { allowance = value; } } public FullTimeLectureClass():base(){ } public FullTimeLectureClass(Double basicsalary):base(lectureId,name) { this._basicSalary = basicsalary; this._allowance = GetAllowance(); }
namespace XYZ_System { public class Lecturer { private int lectureId; public int _lectureId { get { return lectureId; } set { lectureId = value; } } private String name; public String _name { get { return name; } set { name = value; } } private String email; public String _email { get { return email; } set { email = value; } } private int mobileNo; public int _mobileNo { get { return mobileNo; } set { mobileNo = value; } } private int landNo; public int _landNo { get { return landNo; } set { landNo = value; } } private String status; public String _status { get { return status; } set { status = value; } } private String address; public String _address { get { return address; } set { address = value; } } private String gender; public String _gender { get { return gender; } set { gender = value; } } private Double salary; public Double _salary { get { return salary; } set { salary = value; } } //constrator public Lecturer() { } public Lecturer(int id) //Custom Constructor - overloaded { this.lectureId = id; } public Lecturer(int lectureId, String name, String email, int mobileNo, int landNo, String status, String address, String gender, Double salary) { this.lectureId = lectureId; this.name = name; this.email = email; this.mobileNo = mobileNo; this.landNo = landNo; this.status = status; this.address = address; this.gender = gender; this.salary = salary; }
Quote:base(lectureId,name)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)