Question: Consider the following test code placed in the test class within the main() methood Your task is to write a Java class Student so that

 Consider the following test code placed in the test class within

Consider the following test code placed in the test class within the main() methood Your task is to write a Java class Student so that the expected output is produced For example: Test Result int age 48; String name"Denise Collins"; String uni"Adelaide"; Student s1new Student (name); System.out.println(s1.aboutMe()); Student s2 new student (name, uni); System.out.println(s2.aboutMe()); Student s3 = new Student (name, uni, age); System.out.println(s3.aboutMe()); Student object created. Name: Denise Collins Uni: null Age: 0 Student object created. Name: Denise Collins Uni: Adelaide Age: 0 Student object created. Name: Denise Collins Uni: Adelaide Age: 48 Answer: (penalty regime: 0,10,20,50, %) public class Student { 2 II TODO your code goes here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!