Write a back–end class called TUTTable and save it in a file called TUTTable.cpp. This class must have the following structure: Private Members Data Type Name Description TUTCell cTableData[ ][ ] This member will store the cells of the table. It must contain 30 rows and each row should be able to store 100 cells. int cNumberOfRows This member will store the number of rows that contain data. int cNumberOfColumns This member will store the number of columns that contain data. Public Methods Return Type Method Signature Description TUTTable() A constructor that must initialise the cNumberOfColumns and cNumberOfRows to zero. TUTTable(const TUTTable &refTable) A copy constructor that must copy the data from the received class to its data members. At the beginning of this method insert the following debug instruction: if (Debug::ACTIVE) {Debug::log("TUTTable","TUTTable","BEGIN of method");} At the end of this method insert the following debug instruction: if (Debug::ACTIVE) {Debug::log("TUTTable","TUTTable","END of method");} TUTTable(int numberOfColumns) A constructor that must initialise the cNumberOfColumns member to the received value. This constructor must also initialise cNumberOfRows to zero. int getNumberOfRows() int getNumberOfColumns() void addRow(TUTCell rowData[]) This method must copy the cells in the rowArray[] into the cTableData[ ][ ] array. At the beginning and end of this method insert similar debug instructions as those in the copy constructor. Also insert a debug instruction that will display the data content of each cell as it is added to the cTableDatap[][] array. TUTCell getCellAt(int row, int col) A constructor that must return the cell located at index position (row, col)
Write a back–end class called TUTTable and save it in a file called TUTTable.cpp. This class must have the following structure:
Private Members
Data Type Name Description
TUTCell cTableData[ ][ ] This member will store the cells of the table. It must contain 30 rows and each row should
be able to store 100 cells.
int cNumberOfRows This member will store the number of rows that contain data.
int cNumberOfColumns This member will store the number of columns that contain data.
Public Methods
Return Type Method Signature Description
TUTTable() A constructor that must initialise the cNumberOfColumns and
cNumberOfRows to zero.
TUTTable(const TUTTable &refTable) A copy constructor that must copy the data from the received class to its data
members.
At the beginning of this method insert the following debug instruction:
if (Debug::ACTIVE) {Debug::log("TUTTable","TUTTable","BEGIN of
method");}
At the end of this method insert the following debug instruction:
if (Debug::ACTIVE) {Debug::log("TUTTable","TUTTable","END of method");}
TUTTable(int numberOfColumns) A constructor that must initialise the cNumberOfColumns member to the
received value. This constructor must also initialise cNumberOfRows to zero.
int getNumberOfRows()
int getNumberOfColumns()
void addRow(TUTCell rowData[]) This method must copy the cells in the rowArray[] into the cTableData[ ][ ]
array.
At the beginning and end of this method insert similar debug instructions as
those in the copy constructor. Also insert a debug instruction that will display
the data content of each cell as it is added to the cTableDatap[][] array.
TUTCell getCellAt(int row, int col) A constructor that must return the cell located at index position (row, col)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)