subject

Design and implement the class PostType which is composed of class textType of the previous homework (i. e. using composition). In addition to the main text which represents the Post part of the postType, the class has a dynamic list of comments ( each element of type text represents the certain comment). Also, the class has the variable postID that represents the number associated with the post. The length of the comments list represents the number of comments and stored in the NumComments integer variable. In addition to the constructor with default parameters and the necessary functions, the function Show() or Print() will print the name of the person that write the post then the post itself followed by the comments of persons on the post (proceeded by the name of person write the comment). You can use the print of textType to print each post and each comment on the post after doing the following modification in Note 1. Also, you need a public function addComment to add comments to the Post with all necessary parameters such as the name the comment. Note 1: modify the class textType such that another variable of type string called Name represents the person who creates or said the text. This new variable must be printed with text in the print function and initiated in the constructor and any necessary modification. Note 2: the design of the class consists of design the UML Class diagram while the implementation consists of the class definition and class implementation (functions definition). Both should be submitted until next Monday during the lecture *

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
What must you do before formatting a paragraph?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
How do you write an argumentative essay about the importance of free enterprise ?
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
You know the right answer?
Design and implement the class PostType which is composed of class textType of the previous homework...
Questions
Questions on the website: 13722363