Question: I ' m confused on how to write this method, in java: / * * * An implementation of { @link Robot } * that

I'm confused on how to write this method, in java:
/**
* An implementation of {@link Robot}
* that can maintain a fixed number of parts
* of any type.
*/
import java.util.Arrays;
public class ArrayRobot implements Robot {
public static final int DEFAULT_CAPACITY =6;
private String[] functions;
private Part[] parts;
// TODO: First stub and then write this class
@Override
public boolean addPart(String function, Part part){
// TODO Auto-generated method stub
return false;
}
@Override
public Part removePart(String function){
// TODO Auto-generated method stub
return null;
}
@Override
public Part getPart(String function, int index){
// TODO Auto-generated method stub
return null;
}
}

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 Databases Questions!