Question: Consider the following code snippet: public abstract class Machine { public abstract void setRPMs ( ) ; . . . } You wish to create

Consider the following code snippet:
public abstract class Machine
{
public abstract void setRPMs();
...
}
You wish to create a concrete subclass named PolisherMachine. Which of the following is the correct way to declare this subclass?
Question 3 options:
public class PolisherMachine implements Machine
{
public void setRPMs(){...}
}
public class PolisherMachine extends Machine
{
void setRPMs(){...}
}
public class PolisherMachine implements Machine
{
void setRPMs(){...}
}
public class PolisherMachine extends Machine
{
public void setRPMs(){...}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!