I write:
Class<? extends Task> a = n.getClass(); The getClass() method should return an object describing the class and assign it to the variable а .
But this part is not clear for me. Class<? extends Task> Class<? extends Task> . What kind of variable is this and where is the variable now you can use it? I want to understand how it works. Help me to understand. especially < ? extends Task> question mark kills something here with ternary operation?