Students, please be sure to log in. This site does not use cookies and does not track/store work submitted when not signed in.
Unit 9 Problems
Java Reference Sheet
Student
Let's practice overriding methods! Write the speak method in the Student
class so that the line of code below will print "I love to learn!"
to the console. Recall that overriding a method means the child class implements the same method with the same method header as the parent!
Student s = new Student();
System.out.println(s.speak()); //prints "I love to learn!" to the console