package ciai.model; public class Degree { private int id; private String name; private int totalOfECTS; private int numberOfScholarYears; private Course[] courses; public Degree(int id,String name, int totalOfECTS, int numberOfScholarYears, Course[] courses){ this.setId(id); this.setName(name); this.setTotalOfECTS(totalOfECTS); this.setNumberOfScholarYears(numberOfScholarYears); this.setCourse(courses); } public int getId(){ return this.id; } public void setId(int id){ this.id = id; } public String getName(){ return this.name; } public void setName(String name){ this.name = name; } public int getTotalOfECTS(){ return this.totalOfECTS; } public void setTotalOfECTS(int totalOfECTS){ this.totalOfECTS = totalOfECTS; } public int getNumberOfScholarYears(){ return this.numberOfScholarYears; } public void setNumberOfScholarYears(int numberOfScholarYears){ this.numberOfScholarYears = numberOfScholarYears; } public Course[] getCourse(){ return this.courses; } public void setCourse(Course[] courses){ this.courses = courses; } }