120 Review

Quiz

Define the class Wire as outlined below.

public class Wire {
    // instance variables to here
    public Wire (int end1, int end2) { }
    public int getEnd(int n) { return -1;}
    public Wire[] cut(int where) { return null; }
    public Wire solder(Wire[] wires) { return null; }
}