first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package Week2.InClassExercise1;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Course {
|
||||
private ArrayList<Section> sections = new ArrayList<>();
|
||||
private String prefix;
|
||||
private int courseNumber;
|
||||
|
||||
public void display() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package Week2.InClassExercise1;
|
||||
|
||||
|
||||
public class Person {
|
||||
|
||||
private String name;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package Week2.InClassExercise1;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Section {
|
||||
|
||||
private ArrayList<Person> students = new ArrayList<>();
|
||||
private String classroom;
|
||||
|
||||
public int numStudents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void display() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package Week2.InClassExercise1;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Student {
|
||||
|
||||
private ArrayList<Integer> quizzes = new ArrayList<>();
|
||||
|
||||
public double quizAverage() {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public void display(){
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package Week2.InClassExercise1;
|
||||
|
||||
public class Teacher extends Person {
|
||||
|
||||
public double salary;
|
||||
|
||||
public double calculateTaxes() {
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user