You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
730 B
Java
44 lines
730 B
Java
public interface ClickGetter {
|
|
boolean click(int mouseX, int mouseY);
|
|
}
|
|
|
|
|
|
//public interface Shape {
|
|
// public int numVertices();
|
|
//}
|
|
//
|
|
//
|
|
//class Circle2 implements Shape {
|
|
// Circle2() {
|
|
// blah;
|
|
// }
|
|
//
|
|
// int numVertices() {
|
|
// return 0;
|
|
// }
|
|
//
|
|
// void expand() {
|
|
// blah2;
|
|
// }
|
|
//}
|
|
//
|
|
//class Square implements Shape {
|
|
// int numVertices() {
|
|
// return 4;
|
|
// }
|
|
//}
|
|
//
|
|
//
|
|
//Shape g = new Circle2();
|
|
////g.expand(); // bad
|
|
//println(g.numVertices()); //good
|
|
//g = new Square();
|
|
//println(g.numVertices());
|
|
//
|
|
//void printNumberOfVertices(Shape s) {
|
|
// println(s.numVertices());
|
|
//}
|
|
//
|
|
//printNumberOfVertices(new Circle2());
|
|
//printNumberOfVertices(new Square());
|