class A { public T get(T key) { return null; } } class B extends A { private A a; public String get(String key) { return a.get(key); } }