Hi Programmers!
I'm still learning Java in Greenfoot, and this is likely a simple answer - I'm just a bit confused though as to why you specify a parameter of type java.lang.Class with the word .class after the class name. For instance,
if ( isTouching(Worm.class)) {
removeTouching(Worm.class);
}
Why is the argument (Worm.class) instead of some other dot notation or variable declaration?
Just curious if anyone could help explain this in a bit more detail.
Thanks so much in advance.

