You’re in luck. You don’t need to pass in anything! Just define your class globally.
class Foo {
Foo(){}
}
Foo bar = new Foo();
void run(){
if( bar instanceof Foo ){
print( "It's a foo, yes indeed!")
}
}
You’re in luck. You don’t need to pass in anything! Just define your class globally.
class Foo {
Foo(){}
}
Foo bar = new Foo();
void run(){
if( bar instanceof Foo ){
print( "It's a foo, yes indeed!")
}
}