Home > front end >  Take a class as a parameter which has a particular method in it
Take a class as a parameter which has a particular method in it

Time:05-14

I know that we can pass a class in a param which has a particular class as its super. For example, see this:

public void sampleMethod(Class<? super MyParentClass> class){
   // my random code            
  • Related