How do i pass a class type into a function

but what if i want a function that takes a parameter to determine which class goes in place of Foo

a la
void run(class){
instanceof class
}