1. Engineering
  2. Computer Science
  3. consider the following constructor for an immutable matrix adt public...

Question: consider the following constructor for an immutable matrix adt public...

Question details

Consider the following constructor for an immutable matrix ADT:


public class SolnMatrix implements Matrix {
private final int [ ] [ ] data ;
public SolnMat r ix ( int [ ] [ ] matr ix ) {
data = matrix
}


// the usual operations follow . . .
Will this class behave as expected? Explain.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution