subject

Consider the following code snippet: public class Vehicle
{
. . .
public void setVehicleClass(double numberAxles)
{
. . .
}
}
public class Auto extends Vehicle
{
. . .
public void setVehicleClass(int numberAxles)
{
. . .
}
}
Which of the following statements is correct?

a. The Auto class overrides the setVehicleClass method.
b. The Vehicle class overrides the setVehicleClass method.
c. The Auto class overloads the setVehicleClass method.
d. The Vehicle class overloads the setVehicleClass method.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:10
How can i delete permalinks from a word press site?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What does 21 pilots middle aged name as a band 15 years prior to them naming their band 21 pilots?
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
You know the right answer?
Consider the following code snippet: public class Vehicle
{
. . .
public void set...
Questions
question
Spanish, 15.06.2021 19:10
question
Mathematics, 15.06.2021 19:10
question
Physics, 15.06.2021 19:10
Questions on the website: 13722360