accepts method

bool accepts(
  1. int w,
  2. int h
)

Implementation

bool accepts(int w, int h) => w == width && h == height;