Commit 9ded2313 authored by 9731087's avatar 9731087

first commit

parents
Pipeline #572 canceled with stages
import java.util.ArrayList;
public class Employee {
protected ArrayList<Payroll> payrolls;
protected int defPay;
protected int income;
public ArrayList<Payroll> getPayrolls() {
return this.payrolls;
}
}
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
public class Master {
private Essay[] essays;
}
public class Person {
protected String firstName;
protected String lastName;
protected String ID;
protected int joiningYear;
protected Department department;
public Person(String firstName, String lastName, String ID, int joiningYear, Department department) {
this.firstName = firstName;
this.lastName = lastName;
this.ID = ID;
this.joiningYear = joiningYear;
this.department = department;
}
public String getFirstName() {
return this.firstName;
}
public String getLastName() {
return this.lastName;
}
public String getID() {
return this.ID;
}
public int getJoiningYear() {
return this.joiningYear;
}
public Department getDepartment() {
return this.department;
}
}
public class ServiceEmployee {
public int incomeCalculate(){
}
}
public class Student {
protected Course[] courses;
public Course[] getCourses() {
return courses;
}
}
import java.util.ArrayList;
public class Teacher {
private ArrayList<Course> courses;
private void addCourse(Course course) {
this.courses.add(course);
}
private void removeCourse(Course course){
this.courses.remove(course);
}
public int incomeCalculate(){
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment