~/ learn/ comp-308/ cards/ Abstract classes & methods
1 of 5

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/4921f4ce-0cf6-45be-82ed-9433d4ccdf22/flashcard utf-8 LF