Question: Please help me in finding the best answer Consider the following code segment and class. Student kathynew Student (10) System.out.println (kathy.getAge ()) class Student private
Please help me in finding the best answer
Consider the following code segment and class. Student kathynew Student (10) System.out.println (kathy.getAge ()) class Student private int age; public Student (int age) public int getAge () this.age age: return age: What is printed as a result of executing the code segment? 10 A memory reference value 0 a compile error message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
