So the idea is...
In C and in other languages you can pass an untyped pointer as a parameter, e.g.:
C
foo( void* p1 ) ;
pascal
function foo(pointer p1 ) : string ;
These are untyped and it is on the function to know what to do with them. I want to do the same thing in java e.g.:
class some class{
String someMethod(Class p1){
return (String) p1
}
}
Is this even possible?