~/ learn/ comp-308/ cards/ Interfaces & Inner Classes
1 of 33

Declare the abstract Event base with one abstract method

Declare the abstract Event base with one abstract method

Answer

public abstract class Event { public abstract void action(); }

The class is abstract and so is action() — note the semicolon, not a body. No concrete subclass may skip implementing action().

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/cf741a52-f10b-4704-98aa-ba1034b15997/flashcard utf-8 LF