esoe
2 years ago
15 changed files with 65 additions and 85 deletions
@ -1,27 +0,0 @@
@@ -1,27 +0,0 @@
|
||||
package ru.molokoin; |
||||
|
||||
public class App { |
||||
private Teacher[] teachers; |
||||
private Student[] students; |
||||
private Aspirant[] aspirants; |
||||
|
||||
//инициируем исходные данные
|
||||
App(){ |
||||
teachers = new Teacher[2]; |
||||
students = new Student[3]; |
||||
aspirants = new Aspirant[1]; |
||||
aspirants[0] = new Aspirant("Ronald Correa", Gender.MALE, "Computer science", "Design of a functional programming language."); |
||||
} |
||||
public void print(Person person){ |
||||
//
|
||||
} |
||||
//выводим данные в консоль
|
||||
public void printAll(){ |
||||
//
|
||||
} |
||||
|
||||
public static void main(String[] args) { |
||||
|
||||
} |
||||
|
||||
} |
@ -1,24 +0,0 @@
@@ -1,24 +0,0 @@
|
||||
package ru.molokoin; |
||||
|
||||
public class Aspirant extends Person{ |
||||
private String thesisTitle; |
||||
public static final Role role = Role.ASPIRANT; |
||||
|
||||
Aspirant (String name, Gender gender, String department, String thesisTitle) { |
||||
super(name, gender, department); |
||||
setThesisTitle(thesisTitle); |
||||
} |
||||
|
||||
public void setThesisTitle(String thesisTitle) { |
||||
this.thesisTitle = thesisTitle; |
||||
} |
||||
|
||||
public String getThesisTitle() { |
||||
return thesisTitle; |
||||
} |
||||
|
||||
public static void main(String[] args) { |
||||
|
||||
|
||||
} |
||||
} |
@ -1,5 +0,0 @@
@@ -1,5 +0,0 @@
|
||||
package ru.molokoin; |
||||
|
||||
public class Student extends Person{ |
||||
public static final Role role = Role.STUDENT; |
||||
} |
@ -1,10 +0,0 @@
@@ -1,10 +0,0 @@
|
||||
package ru.molokoin; |
||||
|
||||
public class Teacher extends Person{ |
||||
public static final Role role = Role.TEACHER; |
||||
|
||||
Teacher(String name, Gender gender, String department) { |
||||
super(name, gender, department); |
||||
//
|
||||
} |
||||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue