例如,Windows 系統會定義數個事件類別:MouseEvent 是 InputEvent 的子類別,而 MouseClickEvent 及 MouseMotionEvent 是 MouseEvent 的子類別。