Consider the following code snippet Which methods of class O
Consider the following code snippet:
Which methods of class \"Object\" does C override in this code? Select all that apply.
| getName | 
Solution
The answer is equals, which is option C. The other two functions are C(String n), which is also a contructor. The other is getName(), which is specific to the function. Equals is a function which is used by all the objects, we override that function in this class.

