Question: A programmer is creating a FROG class and wants to override the toString method from the OBJect class. Which of the following declarations would be
A programmer is creating a FROG class and wants to override the toString method from the OBJect class. Which of the following declarations would be appropriate?
1. public class Frog
2. public class Frog extends Object
3. public class Frog implements Object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
