You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InterfaceConstructor.java 204B

21 years ago
21 years ago
123456789
  1. interface i {
  2. i() {} // ERR: interfaces can't have constructors
  3. }
  4. class c {
  5. c(); //ERR: constructors must have bodies
  6. abstract c(int i) { } //ERR: constructors can't be abstract
  7. }