Skip to content

Commit 9953860

Browse files
committed
added student.java
1 parent f57ffa9 commit 9953860

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
public class Student {
3+
public String name;
4+
private int ID;
5+
public double cgpa;
6+
7+
public Student() {
8+
this.name= "";
9+
this.ID=0;
10+
this.cgpa=0.0;
11+
}
12+
public Student(String name,int id,double cgpa){
13+
this.name = name;
14+
ID= id;
15+
this.cgpa=cgpa;
16+
}
17+
18+
}

0 commit comments

Comments
 (0)