OnJava8-Examples/housekeeping/NoSynthesis.java

17 lines
333 B
Java
Raw Normal View History

2015-09-07 11:44:36 -06:00
// housekeeping/NoSynthesis.java
2015-11-14 16:18:05 -08:00
// <20>2016 MindView LLC: see Copyright.txt
2015-06-15 17:47:35 -07:00
class Bird2 {
Bird2(int i) {}
Bird2(double d) {}
}
public class NoSynthesis {
public static void main(String[] args) {
//! Bird2 b = new Bird2(); // No default
Bird2 b2 = new Bird2(1);
Bird2 b3 = new Bird2(1.0);
}
2015-09-07 11:44:36 -06:00
}
/* Output: (None) */