-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.java
More file actions
34 lines (28 loc) · 763 Bytes
/
Student.java
File metadata and controls
34 lines (28 loc) · 763 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
31
32
33
34
package STUDENTMANAGEMNT;
public class Student {
private String name;
private int rollNumber;
private String address;
private String contactDetails;
public String toString() {
return name;
}
public Student(String name, int rollNumber, String address, String contactDetails) {
this.name = name;
this.rollNumber = rollNumber;
this.address = address;
this.contactDetails = contactDetails;
}
public String getName() {
return name;
}
public int getRollNumber() {
return rollNumber;
}
public String getAddress() {
return address;
}
public String getContactDetails() {
return contactDetails;
}
}