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
Georgia [21]
3 years ago
15

Assume that circle and objects are created as follows Circle circle = new Circle(1); GeometricObject object = new GeometricObjec

t(); a) Are the following Boolean expressions true or false? (circle instanceof GeometricObject) (object instanceof GeometricObject) (circle instanceof Circle) (object instanceof Circle) b. Can the following statements be compiled? Circle circle = new Circle(5); GeometricObject object = circle;
Computers and Technology
1 answer:
NARA [144]3 years ago
8 0

Answer and Explanation:

The output is false because Circle is used. Circle class has two methods, such as ( Circle circle ) and Object o that defined in the Object class. The Circle class inherits it. Circle.euqlais equaled to Object o because it is the type of circle1 and circle 2. The object of Circle is match circle1. equal by the compiler.

The output is accurate if Circle class overrides the equals to defined in Object class. The circle is matched to equals to object and run time method implemented in Circle class.

Both Circle has a different address. With Circle.equals(circle 2) replaced and have a same method in Object class.

Yes the following statement can be compiled the Circle circle = new Circle(5);

Geometric Object object = circle;

In this Object o is used to compile and run time as the circle has a different address. Method overriding allows dynamic binding, but it is always determined by declared type.

You might be interested in
According to your textbook, the three major criteria against which to test documents that you locate on the Internet are authors
pantera1 [17]

Answer:

The following statement is False.

Explanation:

Because asper textbook there are only one main criteria against the test documents that find on the internet i.e., authorship. So, that's why the following given statement is false. The graphic and the interactivity depends on the quality of the document this options do not come under the criteria to test the document.

6 0
3 years ago
Which of the following can a cell contain?
vredina [299]
I think it could be All of these.....
5 0
3 years ago
Read 2 more answers
One of the advantages of simulation is​ that: A. it is a repetitive approach that may produce different solutions in repeated ru
Dafna1 [17]

Answer:

A. it is a repetitive approach that may produce different solutions in repeated runs.

5 0
4 years ago
Read 2 more answers
An outdoor products company wants to test a new website design where customers can get information about their favorite outdoor
ExtremeBDS [4]

Answer:

Option (A) is the right answer for factors.

Option (B) is the right answer for factor levels.

Explanation:

As per the scenario, the company wants to see the effect of their new website design on their customers, for which the factor of time spent on the new website is right because it gives the company to acknowledge the data of time spent by a customer on the new website.

To reach the result of the factor, we have to work on the factor level, in which we will compare the time spent on the old website and the new website because it gives the company an idea of customers preferring which website design.

8 0
3 years ago
Microsoft words spell checker
Virty [35]
To check spelling<span> in a </span>Word<span> document, open up the document, head to the “Review” tab, then click on “</span>Spelling<span> & Grammar” (part of the “Proofing” group of tools). 

</span>
4 0
3 years ago
Other questions:
  • Which type of architecture places a firewall in front of the VPN to protect it from Internet-based attacks as well as behind a f
    6·1 answer
  • Determine the number of bytes necessary to store an uncompressed binary image of size 4000 × 3000 pixels.
    9·1 answer
  • You can increase your efficiency by using your e-mail program's spell checker because it eliminates the need for you to proofrea
    11·1 answer
  • While visiting a web site during your lunch break, you see a window that states the web site will not operate properly without f
    13·1 answer
  • Which of the following is NOT a view which can be chosen for a presentation?
    15·1 answer
  • Where do endnotes appear in a document? at the bottom of the page at the top of the page at the end of the document at the end o
    12·1 answer
  • What command can be used to export an nps backup file named npsconfig.xml that can be used to restore nps configuration on anoth
    12·1 answer
  • Media applications that play audio or video files are part of a class of workkloads called "streaming" workloads (i.e., they bri
    9·1 answer
  • What is one way to recognize whether an online source has been copyrighted? The source features the phrase “all rights reserved.
    6·2 answers
  • Write a qbasic program to supply first , middle and last name of a person and print the output as given below :
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!