A good answer might be:A complete program is below. | |
Completed ConstructorHere is a complete program. The constructor in the definition of HelloObject has a parameter named st. This parameter is used to pass data into the constructor. The constructor itself does nothing but copy it to the variable greeting of the object.
| |
QUESTION 19:What will this program print on the monitor when it is run? Click Here after you have answered the question |