Question: You will also need to set up multiple (Overloaded) Constructors that allow various parameters to be passed when creating the object because the student does
You will also need to set up multiple (Overloaded) Constructors that allow various parameters to be passed when creating the object because the student does not always know all the data when he or she is working with your app. Give the student the following three options (Constructors) to create an Experiment:
- Nothing is known
- Only the Student Name is known
- Only the Experiment Number and Experiment Description are known
DO NOT use radio buttons to allow the user to select one of the above options. This will be completed in code!
Design a Form with the appropriate controls and a ‘Create’ Button to allow the student to use any of the Constructors listed to ‘Create’ his or her Experiment in memory as an instantiated Experiment object called ‘exp’. Use an appropriate decision making structure (If-Elseif-Else statement) to navigate to the correctly worded instantiation code to bind to the appropriate Constructor.
Step by Step Solution
There are 3 Steps involved in it
Answer Heres an example of how you can design a form in C using Windows Forms to achieve the describ... View full answer
Get step-by-step solutions from verified subject matter experts
