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:50
Write a 3-4 page apa formatted paper comparing your organization’s it strategy with the best practices outlined in your course text. content should include, but not be limited to: developing and delivering on the it value, developing it strategy for the business value and linking it to business metrics. your paper should include an abstract and a conclusion and a reference page with 3-5 references
Answers: 1
question
Computers and Technology, 22.06.2019 15:10
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Me if you do then you get 10 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
Where is permanent data in the computer stored whenever gym starts his laptop he sees some commands in numbers appearing on the screen these instructions are being preceded by the control unit in
Answers: 1
You know the right answer?
Public class Road private String road
public Road(string name)
roaden
>
...
Questions
question
Mathematics, 16.12.2021 04:50
question
Social Studies, 16.12.2021 04:50