subject

Public class Road private String road
public Road(string name)
roaden
>
public class Highway extends Road
private int speedtest
public Highway (String name, int lait)
speedlit liit;
>
The following code segment appears in a method in another claus.
Road ringway"Interstate 101.55): 1/ line 1
Road 2 new Road("El Street) // line 2
Highway new Road("Sullivan Street): 1 line 3
Highway nene Highway (New Jersey Turnpike", 65); // line 4
Which of the following best explains the error, if any, in the code segment?
Line 1 will cause an error because Raad variable cannot be instantiated as an object of type Highway
Line 2 will cause an error because the road constructor is not properly cated
c Line 3 will cause an error because a Highway variable cannot be instantiated as an object of type Road
Line 2 will cause an enor became Highway constructor is not property called

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:40
When running anti-virus software , what could be a reason where recipitent is not guaranteed that data being streamed will not get interrupted?
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
When making changes to optimize part of a processor, it is often the case that speeding up one type of instruction comes at the cost of slowing down something else. for example, if we put in a complicated fast floating-point unit, that takes space, and something might have to be moved farther away from the middle to accommodate it, adding an extra cycle in delay to reach that unit. the basic amdahl's law equation does not take into account this trade-off. a. if the new fast floating-point unit speeds up floating-point operations by, on average, 2ă—, and floating-point operations take 20% of the original program's execution time, what is the overall speedup (ignoring the penalty to any other instructions)? b. now assume that speeding up the floating-point unit slowed down data cache accesses, resulting in a 1.5ă— slowdown (or 2/3 speedup). data cache accesses consume 10% of the execution time. what is the overall speedup now? c. after implementing the new floating-point operations, what percentage of execution time is spent on floating-point operations? what percentage is spent on data cache accesses?
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
question
Computers and Technology, 24.06.2019 07:50
Write a defining table and then a program that determines if you can sleep in or not. your program should get all its input from your computer’s clock. on all weekdays (monday through friday) that are not holidays, your program should output “get up! ” on all other days (weekends and holidays), your program should output “sleep in.” the three holidays that your program must check for are january 1 (new year’s day), july 4 (u.s. independence day), and december 25 (christmas). you don’t need to include other holidays in your program because most other holidays do not occur on a fixed day each year.
Answers: 1
You know the right answer?
Public class Road private String road
public Road(string name)
roaden
>
...
Questions
question
History, 07.11.2020 17:10
question
Mathematics, 07.11.2020 17:10
question
Computers and Technology, 07.11.2020 17:10
question
Mathematics, 07.11.2020 17:10
question
History, 07.11.2020 17:10
question
Mathematics, 07.11.2020 17:10
question
Mathematics, 07.11.2020 17:20
question
History, 07.11.2020 17:20
question
Physics, 07.11.2020 17:20
question
Business, 07.11.2020 17:20
Questions on the website: 13722360