Question: Time left 0:37: name = public class Student{ private final String name; public Student() { Engineer; } public Student( String newName ) { name =

 Time left 0:37: name = public class Student{ private final String

Time left 0:37: name = public class Student{ private final String name; public Student() { "Engineer"; } public Student( String newName ) { name = newName; } public String getName() { return name; } } The Student class is given for you. Implement a class named as JavaLevel. It should satisfy the following properties: 1. (2 pts.) Create two private fields named as javaStudent (of type Student) and level (of type int). 2. Create two constructors: o (2 pts.) A no-arg constructor that gives initial values to javaStudent (by using the no-arg constructor of Student class) and level (=0). o (3 pts.) A constructor that takes a Student and an integer for javaStudent and level data fields respectively. Use them for initializing java Student and level data fields. 3. (5 pts.) Implement accessor and mutator methods for javaStudent 4. (3 pts.) Implement only an accessor for level 5. (5 pts.) Create a method increaseLevel() which simply increases (+1) the level of the student 6. (5 pts.) Finally, write a method called to String that returns a string of the form: " is at level:

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!