Computer Science, asked by sarkarsid, 9 months ago

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 aaditiraj013
0

Answer:

What to do here please mention it properly.

Answered by sandykohli99
4

Answer:

compilation successful

Similar questions