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
Type your solution
Skills Practiced:
3.B
4.A
4.B
1.C
Saved
Saved