Question: Programming Language C++: Create a class named MessageClass with the following attributes: A. A public method called MessageBox that accepts three parameters: String, integer, and
Programming Language C++:
Create a class named MessageClass with the following attributes:
| A. | A public method called MessageBox that accepts three parameters: String, integer, and string. Hint: Don't forget to include the three lines: #include in MessageClass.h just above the class definition. | |
| B. | Include 4 constants of type int in the header file that define Bonk, Question, Information and Wink so that main() can reference them in the call toMessageBox(). | |
| C. | Create, initialize and use an array that holds the four emphasis characters, !, ?, i, and ; that align with the constants in Step B and the integer passed into theMessageBox() function. | |
| D. | In the code section of the MessageBox() method, create code that reproduces the following results: |
? Why ??????????????????????????????? ? Why did the chicken cross the road ? Because iiiiiiiiiiiiiiii 11 Because 11111111111111111 i To get to the other side i ; Thank you ; That is all ; Press any key to continue *^
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
