Analysis the following class definition and answer the following question. class Student{ private int id, age; protected float mark; int getAge (int a){ return a ; } protected void setMark (float m){...


Analysis the following class definition and answer the following question.











  class Student{


  private int id, age;


  protected float mark;


  int getAge (int a){


     return a ; }


  protected void setMark (float m){


     mark = m; }


  float result(){


    return mark / 2;


    }


 }



What is the  access specifier of the result in the above code?




a.
No access specifier




b.
private




c.
float




d.
public




e.
void






Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here