This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
public abstract class SampleAbstruct<E> implements SampleInterface<E> { | |
protected final String hello = "hello"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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