incrementHeight method

PRectangle incrementHeight(
  1. num n
)

Increments height by n.

Implementation

PRectangle incrementHeight(num n) => PRectangle(x, y, width, height + n);