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
QUICK HELP ME PLEASE
Sholpan [36]

Answer: Cable Internet access requires the setting up of fiber cables. It is the fastest type of Internet access technology. that's the answer

4 0
3 years ago
A group decision-making approach developed by the Rand Corporation for use in situations where group members are unable to meet
Gnoma [55]

Answer:

correct option is B. The Delphi technique

Explanation:

RAND was developed by Delphi method in the 1950 s and initially to predict the impact of technology on the military.

This method involves a group of experts who respond anonymously to questions and subsequently receive an answer as in the form of statistical representation of group response and after that process repeats itself.

As the goal to narrow down the range of responses and get to something close to a consensus agreement and this Delphi method widely adopted and is still relevant today.

so correct option is B. The Delphi technique

4 0
3 years ago
When methods have ____, other programs and methods may use the methods to get access to the private data.
Nostrana [21]

When methods have public access, other programs and methods may use the methods to get access to the private data.

<h3>What do you mean by public access?</h3>

The Definition of the term public access is known to be a kind of a television channel where anybody can be able to broadcast a program

An example is the city council meeting can be able to broadcast on public access.

Hence, When methods have public access, other programs and methods may use the methods to get access to the private data.

See full question below

When methods have ____, other programs and methods may use the methods to get access to the private data.

a. private access

b. public access

c. complete access

d. all access

Learn more about public access from

brainly.com/question/2736088

#SPJ1

5 0
2 years ago
Please Answer Fast will mark Brainliest!!!
vladimir1956 [14]

Answer:

same

Explanation:

3 0
3 years ago
Choose the word that best completes this sentence. You should post safe load _________ for each floor and keep aisles and passag
erica [24]
You should post safe load limits for
3 0
3 years ago
Read 2 more answers
Other questions:
  • Microsoft Surface can do all of the following except ______.
    12·2 answers
  • Assume that a gallon of paint covers about 350 square feet of wall space. Create an application with a main() method that prompt
    9·1 answer
  • 11.19 LAB: Max magnitude Write a function max_magnitude() with two integer input parameters that returns the largest magnitude v
    7·1 answer
  • How many bits are in 1 tb? [hint: depending on the tool used to calculate this, you may need to use a trick to get the exact res
    6·1 answer
  • What does a counterweight do for a mine winding system
    13·1 answer
  • Which is a feature of a strong thesis statement? A) It presents only the facts. B) It is open-ended. C) It answers the central q
    15·1 answer
  • Dividing a hard drive into multiple sections is known as partitioning
    5·1 answer
  • What type of multimedia are live news feeds? Live news feeds are examples of ________ multimedia. 20 POINTS PLZ HELP
    5·2 answers
  • Using computers can lead to a number of physical safety issues. State and explain TWO(2) of these types of issues.​​​​​
    12·1 answer
  • Iris has completed a graphic design project for a client. what should iris obtain from the client in order to display the work i
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!