-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.java
More file actions
61 lines (53 loc) · 1.17 KB
/
Copy pathdatabase.java
File metadata and controls
61 lines (53 loc) · 1.17 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import java.util.*;
public class database {
/*The database or the constructor*/
private int studentAge;
private String name;
private int pays;
private String pa;
private int sem;
private int year;
public database(){
}
/*This is where everything is being passed back and forth into and out*/
public database(String name){
this.name = name;
}
public void setName(String name){
this.name = name;
}
public String getName(){
return name;
}
public void setParent(String sp){
this.pa = sp;
}
public String getParent(){
return pa;
}
public void setAge(int age){
this.studentAge = age;
}
/*This contains the name, age, parent's approval, semester, and a lot more*/
public int getAge(){
return studentAge;
}
public void setPs(int ps){
this.pays = ps;
}
public int getPs(){
return pays;
}
public void setSem(int se){
this.sem = se;
}
public int getSem(){
return sem;
}
public void setYear(int ye){
this.year = ye;
}
public int getYear(){
return year;
}
}