#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<

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 6RQ
icon
Related questions
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 Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT