Answer:
b. data type of arguments
Explanation:
One of the ways to overload a method is using different type of arguments. Let's say we have a method that finds and returns two integer values
public int sumValues(int num1, int num2){
return num1 + num2;
}
We can overload this method by passing double values as arguments
public double sumValues(double num1, double num2){
return num1 + num2;
}
Answer:
1.2124
2.1212 is the correct answer right
Answer:
pls type clearly to understand i can't understand
Answer:
The answer to the question is included in your question. I guess you need an explanation or clarification.
See Explanation Below
Explanation:
struct Money
{
int dollars,cents;
};
int x,y;
cin>>x>>y;
sales.dollars= x;
sales.cents= y;
The code segment is written in C++ programming language
On Line 1 of the code segment;
The struct keyword is used in c++ and other c type programming to define structure. The name of the structure is Money.
It defines a data type such that the data type is a collection of system and user defined data types
The Money structure defines two integer variables; dollars and cents on line 3.
On line 6, two integer variables x and y are declared.
On line 7, the two variables received inputs from the user.
On line 8, the value of variable x is assigned to dollar
On line 9, the value of variable x is assigned to cent