A class should have two constructors: one with no parameters that sets the integer variables a to 0 and b to 1, and another constructor that takes two integer parameters to set both a and b to the passed in values.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as EHTML, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
29 views
Rich Text Editor File
A class should have two constructors: one with no parameters that sets the integer variables a to 0 and b to 1, and another constructor that takes two integer parameters to set both a and b to the passed in values.