added invokating method by using reflection and nullary constructors for truck and vehicle