subject

Given the following completed class header: first, find all the errors, then state why the error exists, and finally provide a new line of code that will correct the error. Not all errors are syntax errors, some may be flawed implementation choices and thus would later become logical flaws and errors during actual class implementation. If a line has multiple errors, please use two boxes to state the error line and reason, but your new code may be the same in both boxes. You may or may not use all the provided error boxes. 1. PurplePeopleEater {
2. public: 9. private:
3. int eyeCount; 10. Color monsterColor;
11. bool PurplePeopleEater::hasHorn(); 5. bool horn;
12. void getEyeCount(); int peopleEaten; 13. void setColor(string);
7. 14. void consumePerson();
8. // continues to the right 15. };

Line #: Why does this line have an error? New code to put on the specified line:

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
You know the right answer?
Given the following completed class header: first, find all the errors, then state why the error exi...
Questions
Questions on the website: 13722359