public abstract class Button {
private boolean status;
public pressDown();
public abstract boolean isPressed();
}
in button class what does status means and what is the role of pressDown and isPressed button. If isPreseed() just return bool then why have be made it abstract function.
Course: Grokking the Low Level Design Interview Using OOD Principles - Learn Interactively
Lesson: Code of Elevator System