Home Segments Index Top Previous Next

397: Practice

Define Matrix, a class that is to store a two-dimensional array. Next, define a class method, rows:columns:, which creates locations for all matrix values. Then, define the row:column:put: and row:column: methods for setting and getting values from Matrix instances.