subject

Create a c++ project, and call it week 6—abstract parent class. now, let's realize the uml class diagram (take the uml class diagram to code). create a pirate class using a separate header file and implementation file. review your uml class diagram for the attributes and behaviors. the speak() method should be abstract because we do not know how a pirate speaks until we know what kind of pirate the object is. to make the method abstract, set the virtual method to 0 like this. virtual string speak() = 0; // pure virtual method -- abstract method create a captainpirate class using a separate header file and implementation file. the captainpirate class needs to inherit from the pirate class the speak() method should return a statement that you would expect from a captainpirate like this. return "yaaarrr! it be a " + pet + "! \nyaarrr scallywags! swab that poop deck! "; the tostring() method should return the pirate tostring() method plus a little more. for example: return pirate: : tostring() + ", pet: " + pet; create a zombiepirate class using a separate header and implementation file. the zombiepirate class needs to inherit from the pirate class. the speak() method should return a statement based on how hungry the zombiepirate has become (reference the brainhunger).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
What is a dashed line showing where a worksheet will be divided between pages when it prints? a freeze pane a split box a page break a print title
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Anewly established internet company with 40 employees needs your advice. they are looking for a collaboration tool and have narrowed their choices to gotomeeting, webex, and my web conferences. after reading the information presented in this chapter and other sources, prepare a two- page document ( double spaced) that includes two advantages and two disadvantages of each tool. which one is your final recommendation? why did you choose that tool over the other two?
Answers: 3
You know the right answer?
Create a c++ project, and call it week 6—abstract parent class. now, let's realize the uml class dia...
Questions
question
Mathematics, 09.12.2019 19:31
question
Mathematics, 09.12.2019 19:31
question
Mathematics, 09.12.2019 19:31
Questions on the website: 13722361