Computer Science, asked by rachanataral186, 1 month ago

A Java class B has 3 public methods, interface 11 has 3 methods, and interface 12 has 5
methods. If class D extends B and implements 11, 12, what is the minimum number of methods that
class D must implement
Select the closest option
O O methods
O 3 methods
5 methods
O 8 methods
11 methalus
Submit

Answers

Answered by anmol922881
0

Answer:O methods

Explanation:

Answered by qwnerazzuri
0

0 methods (Option A) is right.

In the case where a class extends another class, the additional methods can be overridden if necessary, otherwise the method can be used as is. However, if a class implements an interface, it must implement all the abstract methods defined in the interface, otherwise they must be declared as abstract which cannot be initiated.

Similar questions