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

Pixel has a setColor (int color) member function to set the color

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!