27.1k views
2 votes
Assuming theclassdefinitionaboveis fully implementedandgiventhefollowingmain() function, please indicate which function in the class definition is invoked for each line in main(). For example,line 2 of main invokes line 9 twice (the constructor)forthe matrix class and line 9 and 10 inmain() both invoke thematrix::transpose()function, orline20 inthe matrix class definition on the previous page. Fill outthe others similarly.

User Joynes
by
5.9k points

1 Answer

6 votes

Answer:

Line 4 = 28 40

Line 5 = 28 40

Line 6 = 28 40

Line 8 = 28 40

Line 11 = None

Line 12 = 17 16

Line 13 = 18 16

Line 14 = 19 16

Line 15 = 9

Step-by-step explanation:

Main line number || Matrix object line number (in order)

2 9, 9

3 9

4 28 40

5 28 40

6 28 40

7 None

8 28 40

9 20

10 20

11 None

12 17 16

13 18 16

14 19 16

15 9

User Aariba
by
6.8k points