This site requires JavaScript, please enable it in your browser!
Greenfoot back
Kartoffelbrot
Kartoffelbrot wrote ...

2014/8/16

Checking if a class is abstract

Kartoffelbrot Kartoffelbrot

2014/8/16

#
Hello guys, does anyone know, how to check if a class is abstract? The java.lang.class provides methods to check, if it is an interface or enum, which could be used like this:
Class actorClass = Actor.class;
boolean isInterface = actorClass.isInterface();
Thanks to all!
lordhershey lordhershey

2014/8/16

#
Kartoffelbrot Kartoffelbrot

2014/8/19

#
Thank you :)
You need to login to post a reply.