public class Parent<T> { void <caret>foo(T t){} } class Child extends Parent {}