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, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
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
Social Studies, 10.07.2019 04:00
question
Social Studies, 10.07.2019 04:00
Questions on the website: 13722359