-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStudent.java
More file actions
executable file
·30 lines (28 loc) · 808 Bytes
/
Student.java
File metadata and controls
executable file
·30 lines (28 loc) · 808 Bytes
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
/* */ public class Student extends Exception {
/* */ String name;
/* */
/* */ public Student(String name) {
/* 5 */ super(name);
/* 6 */ this.name = name;
/* */ }
/* */
/* */
/* */ public boolean equals(Object obj) {
/* 11 */ Student s = null;
/* 12 */ if (obj instanceof Student) {
/* 13 */ s = (Student)obj;
/* 14 */ if (this.name.equals(s.name)) {
/* 15 */ return true;
/* */ }
/* */ }
/* 18 */ return false;
/* */ }
/* */
/* */ public String toString() {
/* 22 */ return "I am student: " + this.name;
/* */ }
/* */ }
/* Location: /Volumes/TXS.128G/hope useful/practice/2020.jar!/Student.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/