I want to know how do I use 1 interface at one time when there is two interface in one class. For example, when Cube is not fixed() I can change it's length via interface properties. However, once it is fixed it only can access interface calculate which is volume() or area().
public interface properties <T> {
T size(int length);
T fixed();
}
public interface calculate{
int volume();
int area();
}
public class Cube implements properties, calculate{
private final int length;
public Cube(int length){this.length = length;}
}