-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStudentLowCohesion.java
More file actions
43 lines (41 loc) · 1.18 KB
/
StudentLowCohesion.java
File metadata and controls
43 lines (41 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.upGrad;
public class StudentLowCohesion {
// -------------- functions related to school
/* public boolean isSalaryPaid(String teacherName) {
//some code logic
return true;
}
private boolean isTaxPaid(int year) {
//some code logic
return true;
}
private boolean isClearanceDone(String clearanceDivision) {
//some code logic
return true;
}*/
// -------------- functions related to student
public String findStudentName(int studentid) {
return "data of " + studentid;
}
public String checkStudentMarks(int studentId) {
return "data of " + studentId;
}
public String studentCurrentClass(int studentId) {
return findStudentName(studentId) + "belongs to standard :" + "10" ;
}
}
class SchoolHighCohesion{
// -------------- functions related to school
public boolean isSalaryPaid(String teacherName) {
//some code logic
return true;
}
private boolean isTaxPaid(int year) {
//some code logic
return true;
}
private boolean isClearanceDone(String clearanceDivision) {
//some code logic
return true;
}
}