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
AlekseyPX
3 years ago
14

Objects of the calculator class require no additional information when created. define an object named calc, of type calculator.

Computers and Technology
2 answers:
Marat540 [252]3 years ago
7 0

In Java you can define a new object with:

<span>Calculator calc;</span>

<span>
</span>

<span>or you can define and instantiate with:</span>

Caculator calc = new Calculator();

Grace [21]3 years ago
4 0

Answer

calculator calc;

Explanation

An object is an instance of a class. And a class is what defines or describes the behavior or the state of the object of its type. When a class is defined no memory is allocated until when an object is created memory is allocated.

You might be interested in
Describe a common error that presenters make during their presentation and how to remedy the error​
MrMuchimi

1 Lack of Preparation.

2 Poor Use of Visuals.

3 Inappropriate Humor.

4 Inappropriate Dress.

5 Not Knowing the Audience.

6 Non-Functioning Equipment.

7 Starting or Ending a Presentation Late.

8 Using a Monotone Voice.

7 0
3 years ago
Read 2 more answers
In the program evaluation and review technique (PERT), a delay in ________ will cause the entire project to fall behind. Multipl
sweet [91]

There are different kinds of program. In the program evaluation and review technique (PERT), a delay in a critical path will cause the entire project to fall behind.

<h3>What is program evaluation and review technique?</h3>

Program Evaluation Review Technique (PERT) is known to be a statistical tool that is often used in project management.

It is said to be created so as to help analyze and represent the tasks that is used in completing a said project. ​If any task along a critical path is said to fall behind a specific schedule, the entire project have to be delayed.

learn more about  program evaluation from

brainly.com/question/13171394

4 0
3 years ago
What is output by the following C# code segment?int temp;temp = 180;while ( temp != 80 ) {if ( temp &gt; 90 ) {Console.Write( "T
Artemon [7]

Answer:

This porridge is too hot! This porridge is just right!

Explanation:

I am going to explain every line of the given C# code to give explanation of the output.

  • The first statement int temp declares a variable temp.
  • Then the temp variable is assigned a value 180.
  • The block of statement in while loop body will keep executing until the value in temp variable gets equal to 80. The while loop first checks if the value of temp is not equal to 80. As the value of temp=180 which is not equal to 80, this means that the condition of while loop evaluates to true so the block of code in the body of the loop is reached.
  • There is an if condition inside while loop which checks if the value in temp variable is greater than 90. As value of temp=180 which is greater than 90 so the condition is true.
  • As the condition in the if statement evaluates true so the block of code which is the part of this if statement will be executed:

             {Console.Write( "This porridge is too hot! " );

                  temp = temp – ( temp > 150 ? 100 : 20 ); }

  • The first statement is executed which displays this message: This porridge is too hot!
  • Next   temp = temp – ( temp > 150 ? 100 : 20 ); statement will change the value of temp. It has the conditional operator which works as follows:

                 Here, temp>150 is the condition to be evaluated.

  • If this condition is True then 100 will be returned else 20 will be returned. The value returned is then subtracted from the value of temp and the subtraction result will become the new value of temp. As the value of temp which is 180 is greater than 150 so 100 is returned and is subtracted from the value of temp (180).

                                        temp= 180-100

                                             temp=80

  • So the new value of temp is 80.
  • The else part will not be executed because the condition in if statement was true and also we can see that temp is not less than 70. It means that the porridge is too cold part will not be executed.
  • The while loop while(temp!=80) will again be checked. As the new value of temp is now 80, so the condition gets false which breaks the while loop and program control will leave the body of while loop.
  • After the control comes out of the while loop, there is another if statement. This statement checks if the value of temp variable is equal to 80. It is true as the new value of temp is now 80 after that execution of while loop block of code.
  • As the if condition evaluates to true the statement

                    Console.WriteLine( "This porridge is just right!" );

       will be executed which displays the message:

                                  This porridge is just right.

  • Hence the output of the given code is:

           This porridge is too hot! This porridge is just right!

7 0
3 years ago
To light up an LED, you need to connect the cathode leg to one of the Digital Pins and connect the Anode leg to the ……………. on th
Elenna [48]

Answer bobobobobobobobo

4 0
3 years ago
. Why should we favor programming to interfaces over implementations?
xenn [34]

Answer:

Interfaces are way to use full abstraction.That;s why it is preffered over implementations.

Interfaces are just like class.But the methods declared inside an abstract class are by default abstract and the variables are by default static,final.Which is not the case with classes in classes the variables can be static or non- static ,fincal or non-final and methods can be abstract or non-abstract.

Java classes does not support multiple inheritance but interfaces support multiple inheritance.So whenever we want to implement multiple inheritance in Java we use interfaces.

4 0
3 years ago
Other questions:
  • Email applications can either be local email client programs or web-based applications. Which application is an example of a loc
    13·2 answers
  • The different concepts in the architecture operating model are aligned with how the business chooses to integrate and standardiz
    10·2 answers
  • Manny has created more than one hundred bookmarks. When he looks at the menu, he has to scroll through a very long list of bookm
    15·1 answer
  • What can you say about the following Java class definition?
    10·1 answer
  • A _____ is a search engine that combines internet technology with traditional library methods of cataloguing and assessing data.
    8·1 answer
  • __________ is when a person feels compelled to acquire and abuse a drug despite the harm it causes him or her personally, and de
    14·1 answer
  • WILL GIVE BRAINLIEST!!!!!!!!
    6·1 answer
  • Instructions:Select the correct answer.
    8·2 answers
  • Please help! first one to answer correctly gets brainliest and thanked
    7·1 answer
  • What is office course<br> how to learn office course
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!