Computers and Technology

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 *

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:40, Courtneymorris19
The most complicated four letter word
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, bri2008
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
image
Computers and Technology, 23.06.2019 07:30, jackie0833
Which option allows you to view slides on the full computer screen?
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, cuki96
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
Do you know the correct answer?
Design and implement the class PostType which is composed of class textType of the previous homework...

Questions in other subjects: