observe the code below.
public class Student {
int studentld;
String name;
char grade;
public Student(int studentld, String name, float mark) {
this.studentld = studentld;
this.name=name; to
calculateGrade(mark);
}
public void calculateGrade(float mark){
if(mark>90)
grade=A;
else
grade='B';
For the code
Student s = new Student (1,"Peter",95);
What will be the output?
Answers
Answered by
0
Answer:
What to do here please mention it properly.
Answered by
4
Answer:
compilation successful
Similar questions
Math,
4 months ago
Social Sciences,
4 months ago
CBSE BOARD X,
4 months ago
Economy,
9 months ago
Hindi,
9 months ago
English,
1 year ago
CBSE BOARD XII,
1 year ago