In Engine mock the following exercise:
Which statements concerning the effect of the statement gfx.drawRect(5, 5, 10, 10) are true, given that gfx is a reference to a valid Graphics object?
a). total width of 5 pixels
b). total height of 6 pixeles
c). total width of 10 pixels
d). total height of 11 pixels
And the right answer is d) WHY???
drawRect( int x, int y, int width, int height)
and the values are drawRect (5, 5, 10, 10)
And the pixels is 10 why not??