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