Question: Instruction Find only Five (5) errors in the following code segments. For each error, you have to indicate the line number of the error and

 Instruction Find only Five (5) errors in the following code segments.
For each error, you have to indicate the line number of the

Instruction Find only Five (5) errors in the following code segments. For each error, you have to indicate the line number of the error and recommend the correction accordingly. The line of error could be code that is 1) syntactically wrong OR 2) syntactically right, but is the one that causes error(s) in other part of the program. 1 #include 2 using namespace std; 3 4 class MyTime 5 private: int hour; int minute: 8 public: 9 MyTime() 10 hour - minute - 0; 11 12 void setTime (int, int); 13 void display () 14 15 16 void MyTime: : setTime(int n, int m) 17 hour - h; minute = m; 18 } 19 20 void MyTime::display(); 21 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!