1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Dmitry [639]
3 years ago
14

Write the code for invoking a method named sendObject. There is one argument for this method which is of type Customer. Assume t

hat there is a reference to an object of type Customer, in a variable called John_Doe. Use this reference as your argument. Assume that sendObject is defined in the same class that calls it.
Computers and Technology
1 answer:
kodGreya [7K]3 years ago
3 0

Answer:

sendObject(John_Doe);

Explanation:

The above code has been written in Java.

Since the calling class is the same that declares it, to invoke the method, simply call its name with its argument(s) in a pair parentheses. The name of the method is "sendObject" and its argument is a reference to an object of type Customer saved in a variable called "John_Doe". This can be written as follows:

sendObject(John_Doe);

Hope this helps!

You might be interested in
If a device does not require a driver, it is _____.
xxTIMURxx [149]

Answer:

(B) plug and play

Explanation:

If a device does not require a driver, it is <u>plug and play</u>. Plug and Play (PnP) is a combination of hardware and software support that enables a computer system to recognize and adapt to hardware configuration changes with little or no intervention by a user, including the loading of appropriate drivers.

7 0
4 years ago
What is an Integrated Development Environment (IDE)?
kogti [31]

Answer: A diverse workplace for software developers

6 0
3 years ago
def multiplication_table(number): # Initialize the starting point of the multiplication table multiplier = 1 # Only want to loop
Sauron [17]

In this def multiplication_table(number): # Initialize the starting point of the multiplication table multiplier = 1 * number # the additional condition to exit out of the loop is by the increment the variable for the loop multiplier.

<h3>How do you are making a multiplication desk for a loop in Python?</h3>
  1. Code the usage of a for loop
  2. ourNum = int(input("Enter the quantity you need to generate a multiplication desk for, then hit the `enter` key: "))
  3. ourRange = range(1,6)
  4. for x in ourRange:
  5. result = ourNum * x.
  6. print(ourNum," * ",x," = ",result.

If the numbers multiplier increases then the starting point of the multiplication table multiplier will be greater than 25 and will increase.

Read more about the multiplication table:

brainly.com/question/12617401

#SPJ1

7 0
2 years ago
Design and implement a program (name it GradeReport) that uses a switch statement to print out a message that reflect the studen
Korolek [52]

Answer:

#include <iostream>

using namespace std;

int main()

{

   int grade;

   

   cout << "Enter student's grade: ";

   cin >> grade;

   

   switch (grade)  

       {

       case 100 ... 1000:

           cout << "That grade is a perfect score. Well done.";

           break;

       case 90 ... 99:

           cout << "That grade is well above average. Excellent work.";  

           break;

       case 80 ... 89:

           cout << "That grade is above average. Nice job.";  

           break;

       case 70 ... 79:

           cout << "That grade is average work.";  

           break;

       case 60 ... 69:

           cout << "That grade is not good, you should seek help!";  

           break;

       default:

           cout << "That grade is not passing.";

           break;

       }

   return 0;

}

Explanation:

*The code is in C++

First, ask the user to enter a grade

Then, check the grade to print the correct message. Since you need to check the ranges using switch statement, you need to write the minimum value, maximum value and three dots between them. For example, 70 ... 79 corresponds the range between 70 and 79 both inclusive.

Finally, print the appropriate message for each range.

Note: I assumed the maximum grade is 1000, which should more than enough for a maximum grade value, for the first case.

6 0
3 years ago
Please, give me a comic or story idea. I will mark brainliest. ( i need 5 slides with 2 characters in the story or comic) Please
salantis [7]

Answer:

Jack and John

Explanation:

Jack called John and offered him to come with him and some other friends to go out to the mall.

.....

8 0
3 years ago
Read 2 more answers
Other questions:
  • . Consider the following brute-force algorithm for evaluating a polynomial. ALGORITHM Brute Force Polynomial Evaluation(P[0..n],
    14·1 answer
  • Write a statement that computes the square root of a variable called discriminant
    11·1 answer
  • Write code that causes a "triangle" of asterisks of size n to be output to the screen. specifically, n lines should be printed o
    10·1 answer
  • A(n) ____________ specifies a variable's name and data type.
    5·2 answers
  • Write a program that asks the user how many numbers will be entered and then has the user enter those numbers. When this is done
    7·1 answer
  • Part1) Given 3 integers, output their average and their product, using integer arithmetic.
    12·1 answer
  • The process of identifying and removing logical errors and runtime errors is called ..............
    5·2 answers
  • Type the correct answer in the box. Spell all words correctly.
    12·2 answers
  • WILL GIVE BRAILIST IF ANSWER RIGHT
    11·1 answer
  • Rudy accidentally sent a sensitive work report to a personal friend named James instead one of his co-workers, who is also named
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!