Passing in a sub-class to a method but having the super class as the parameter? August 7, 2023 by Tarik Do this instead: public <T extends Vehicle> void exampleMethod(Class<T> type)