PaycomOA #5
Q5. Java Overriding — Return Type
Estimated EasyConcept questionStatement and editorial — judging is being prepared
Topics (AI-labelled)Iterators
Which statement is correct for a method which is overriding public void add(int a) { ... }?
- the overriding method must return void <-
- the overriding method must return int
- the overriding method can return whatever it likes
Editorial
Loading solution…