Given the following class definition public abstract class C
Given the following class definition: public abstract class Class A {public abstract void method A(T param);} Fill in the blanks in the following non-abstract subclass: class Class B extends Class A {@Override public methodA(paramName) {//do some work here...}}
Solution
Answer:
In first blank : Void
As method A( ) is a function so it should return any value . So void should be written after public that defines return type of function.
In second blank : < T >
