Question

#include <iostream> 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<<obj.Komi(20, 15)<<endl;



3

cout<<obj.Komi(81, 100, 10); return 0; }

correct the code and determine the access types of Komi(int num1,int num2, int num3) and Komi(int num1,int num2) before and after the correction.

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: In an inheritance relationship, the __________ is the general class. a. derived class b. base class ...

A: General class in inheritance Inheritance is the mechanism in which one class acquires the property ...

Q: The dealer's cost of a car is 85% of the listed price. The dealer would accept any offer that is at ...

A: Objective: An algorithm will be developed to compute the least cost that a dealer accepts for a car ...

Q: Consider the following two transactions:T13: read(A);read(B);if A = 0 then B := B + 1;write(B).T14: ...

A: a) Two possible executions: Case 1: Consistency met: A=0 ∨ B=0 T ∨ F =T Case 2: Consistency met: A=...

Q: in five to ten sentence explain what netiquette is and how it improves efficiency and productivity i...

A: Step 1:- Introduction:- Online communication plays an important role in our life today. Netiquette i...

Q: Are There Rules in Assembly Language?

A: Rules in Assembly language: “Yes”, there are some common rules in Assembly language. They are:

Q: 1-What are the three common layers of security planning? How do they differ? 2-List and describe the...

A: Note:- We are allowed to answer one question at a time because you did not specify which question yo...

Q: (True/False): The target of a LOOP instruction must be within 256 bytes of the currentlocation

A: The loop instruction is used to repeat the instruction to the number of times. Syntax: LOOP destinat...

Q: MATHMATICA CODE ONLY!! Please make your code copiable.

A: As per our company guidelines, we are allowed to answer only the first question in case multiple que...

Q: Briefly describe how the &amp;&amp; operator works.

A: The logical AND ( &amp;&amp;) operator for a set of operands is true if and only if all of its opera...