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, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
Which of the following types of software is most applicable to the promotion of new products through advertising? a.databases b. spreadsheets c. web design programs d. word processing tools
Answers: 2
You know the right answer?
Public class Road private String road
public Road(string name)
roaden
>
...
Questions
question
Mathematics, 19.02.2021 14:00
question
Mathematics, 19.02.2021 14:00
question
Mathematics, 19.02.2021 14:00
question
History, 19.02.2021 14:00
question
Biology, 19.02.2021 14:00
question
Biology, 19.02.2021 14:00
Questions on the website: 13722367