File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/amiyahjones Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 3
3
import java .util .ArrayList ;
4
4
5
5
public class JobReadinessLab {
6
- int mentorSession ;
7
- String teacherAssistant , socialSupport , jobTutor ;
8
- boolean isSuccessful ;
9
- ArrayList <String > students ;
10
- level readinessLevel ;
6
+ private int mentorSession ;
7
+ private String teacherAssistant , socialSupport , jobTutor ;
8
+ private boolean isSuccessful ;
9
+ private ArrayList <String > students ;
10
+ private level readinessLevel ;
11
11
12
12
enum level {
13
13
BEGINNER ,
14
14
INTERMEDIATE ,
15
15
ADVANCED
16
-
17
16
}
18
17
19
- JobReadinessLab (String teacherAssistant , int mentorSession ){
18
+ public JobReadinessLab (String teacherAssistant , int mentorSession ){
20
19
this .mentorSession = mentorSession ;
21
20
this .teacherAssistant = teacherAssistant ;
22
21
socialSupport = "Estelle" ;
@@ -25,6 +24,15 @@ enum level {
25
24
readinessLevel = level .BEGINNER ;
26
25
}
27
26
28
-
27
+ public Boolean verifyisSuccessful () {
28
+ if (!isSuccessful ){
29
+ System .out .println ("At least you got to know what software engineering is like!" );
30
+ }
31
+ return isSuccessful ;
32
+ }
33
+
34
+ public int getStudentCount () {
35
+ return students .size ();
36
+ }
29
37
}
30
38
You can’t perform that action at this time.
0 commit comments