Skip to content

Commit 3ded5e2

Browse files
authored
com
1 parent 5cb1d0a commit 3ded5e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

University.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Students
2020
}
2121

2222
Students(){}
23-
23+
//Student setter method
2424
void setstu(String name,int roll,double cgpa)
2525
{
2626
this.name=name;
@@ -29,6 +29,7 @@ void setstu(String name,int roll,double cgpa)
2929

3030
this.cgpa=cgpa;
3131
}
32+
//Student getter method
3233
void getstu()
3334
{
3435
System.out.println(name+"\t"+roll+"\t"+cgpa);

0 commit comments

Comments
 (0)