子类保持范型:
public class Child<T, M> extend Father<T, M>
{
@Override
public void test(T t, M m)
{
//
}
}
子类定型:
public class Child extend Father<String, Integer>
{
@Override
public void test(String t, Integer m)
{
// …
}
}
子类保持范型:
public class Child<T, M> extend Father<T, M>
{
@Override
public void test(T t, M m)
{
//
}
}
子类定型:
public class Child extend Father<String, Integer>
{
@Override
public void test(String t, Integer m)
{
// …
}
}