private string binaryNumber
Add two overloaded constructors, specifying a string and an integer respectively.
- The first constructor must check that the number is a valid binary number, else it must assign null to binaryNumber.
- The second constructor must check that the given integer is non-negative, else binaryNumber is null.
Add two overloaded constructors, specifying a string and an integer respectively.
- The first constructor must check that the number is a valid binary number, else it must assign null to binaryNumber.
- The second constructor must check that the given integer is non-negative, else binaryNumber is null.