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 method A(paramName) {//do some work here...}}

Solution

abstract class ClassA<T> {
   public abstract void methodA(T paramName);
}

class ClassB extends ClassA<String> {

   @Override
   public void methodA(String paramName) {
       // do some work here...

   }

}

 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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site