Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package com.example;
public class Sample extends SampleAbstruct<String> {
public static void main(String[] args) {
System.out.println(new Sample().test(" Bob!!"));
}
@Override
public String test(String name) {
return hello + name;
}
}
package com.example;
public abstract class SampleAbstruct<E> implements SampleInterface<E> {
protected final String hello = "hello";
}
package com.example;
public interface SampleInterface<E> {
public E test(E e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment