public class One { public One(int theX) { x = theX; } public One(double theY) { y = theY; } private int x; private double y; } public class Two { public Two(int theX, double theY) { x = theX; y = theY; } public Two(double theY, int theX) { x = theX; y = theY; } private int x; private double y; }
(a) One and Two both have two constructors. (b) One and Two both have three constructors. (c) One won't compile due to incorrect constructor overloading. (d) Two won't compile due to incorrect constructor overloading.
One
Two
Select all correct answers.