A subclass can change inherited behavior by
- Acheck_circle
Overriding the method
- B
Cannot change
- C
Removing the method
- D
Renaming the method
Explanation
Override (not replace) provides new behavior in subclass.
AP Computer Science A· difficulty 4/5
A subclass can change inherited behavior by
Overriding the method
Cannot change
Removing the method
Renaming the method
Explanation
Override (not replace) provides new behavior in subclass.
Want 10 more like this — adaptive to your weak spots?