Question: b #include using namespace std; class SobolooSoba { int Komi (int num1,int num2) { return num1+num2; } int Komi (int num1,int num2, int num3) {

b

#include

using namespace std;

class SobolooSoba {

int Komi(int num1,int num2) {

return num1+num2;

}

int Komi(int num1,int num2, int num3) {

return num1+num2+num3;

}

};

int main(void) {

SobolooSoba obj;

cout<

cout<

return 0;

}

The question above contains a bug, correct it and determine the output. (7 marks) AN

c. Determine the access types of Komi(int num1,int num2, int num3) and Komi(int num1,int num2) before and after the correction in b and explain why you choose that access type (6 marks)AN

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!