Which one of the following would correctly complete the class definition above?

```
Class Matrix {
public:
Matrix() {}
private:
int rows;
int cols;
// Completion goes here
}
```

a. int mat[][];
b. int mat[rows][cols];
c. int mat[][cols];
d. int mat[6][6];


d. int mat[6][6];

Computer Science & Information Technology

You might also like to view...

Which is a correct static method call of Math class method sqrt?

a. sqrt(900); b. math.sqrt(900); c. Math.sqrt(900); d. Math math = new Math(); math.sqrt(900);

Computer Science & Information Technology

Write a complete Java console application that prompts the user for two numbers, multiplies the numbers, and then displays the result to the user.

What will be an ideal response?

Computer Science & Information Technology

You add multiple RadioButtons to a(n) ______________ to ensure that only one RadioButton in a given group is selected at a time.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Jose is working on a database that stores stock information. He needs to design a field that will allow a user to connect to a graph created in Excel. Jose should apply a(n) ________ data type

A) Calculated B) Attachment C) OLE Object D) Number

Computer Science & Information Technology