Question: Consider the following 2D array of objects: Pixel screen[Y_DIM] [X_DIM]; Class Pixel has a setColor (int color) member function to set the color of a
![Consider the following 2D array of objects: Pixel screen[Y_DIM] [X_DIM]; Class](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f328fb65055_77066f328faf3d5f.jpg)

Consider the following 2D array of objects: Pixel screen[Y_DIM] [X_DIM]; Class Pixel has a setColor (int color) member function to set the color of a pixel (it returns nothing) and a default constructor that makes the pixel's color black. Use this array for the next 4 questions. Question 2 Match each prototype with a valid argument to the function using the 2D array. Answers may be used more than once. void capture(Pixel display[Y_DIM][]); [ Choose] Choose ] Invalid prototype screen screen [2] screen[1][0] void fill(Pixel row[]); bool cleared(Pixel display(][X_DIM]); [ Choose void makeTransparent(Pixel &dot); V | Choose void clear(Pixel display(0)); Choose void makeDotted(Pixel line Choose 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
