You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Code.java 404B

12345678910111213141516171819202122232425262728293031
  1. interface A<T> {
  2. T getValue();
  3. }
  4. /*
  5. abstract class AbstractA<T> implements A<T> {
  6. }
  7. */
  8. interface B extends A<String> {
  9. @Override
  10. default String getValue() {
  11. return "B";
  12. }
  13. }
  14. /*
  15. class BImpl extends AbstractA<String> implements B {
  16. }
  17. public class Code {
  18. public static void main(final String[] args) {
  19. final A<String> object1 = new BImpl();
  20. System.out.println(object1.getValue());
  21. }
  22. }
  23. */