How does Java enforce the implementation of interface methods in a class?
public interface Drawable {
void draw();
}
public class Circle implements Drawable {
// No implementation of draw
}
How does Java enforce the implementation of interface methods in a class?
public interface Drawable {
void draw();
}
public class Circle implements Drawable {
// No implementation of draw
}