18 lines
433 B
Java
18 lines
433 B
Java
// housekeeping/NoSynthesis.java
|
|
// (c)2016 MindView LLC: see Copyright.txt
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
// Visit http://OnJava8.com for more book information.
|
|
|
|
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);
|
|
}
|
|
}
|