Question: All the source code is in the pics I have done some part of the question but I still cant run the program I need

All the source code is in the pics I have done some part of the question but I still cant run the program I need help with the EventPost class.  All the source code is in the pics I have done
some part of the question but I still cant run the program
I need help with the EventPost class. Using the source code provided,
implement two new classes: EventPost and CommentedPost, and refactor the code to
reflect the following inheritance hierarchy. Think: which methods should go where? Post
username timestamp methods not shown Commented Post EventPost likes comments eventType Message
Post Photo Post message filename caption 3 public class EventPost extends post

Using the source code provided, implement two new classes: EventPost and CommentedPost, and refactor the code to reflect the following inheritance hierarchy. Think: which methods should go where? Post username timestamp methods not shown Commented Post EventPost likes comments eventType Message Post Photo Post message filename caption 3 public class EventPost extends post { private String eventType; 5} 6 7 //Constructor parametric Constructor 8e public EventPost() { 9 //getter eventtype 11 12 13 14 15 ) //Display ( ) 3 import java.util.ArrayList; 000 0 0 15 5 public class CommentedPost extends Post { 6 7 protected int likes; 8 protected ArrayList comments; 9 10- public CommentedPost (String username) 11 { 12 super(username); 13 comments =new ArrayList(); 14 } 16 17 18 -19 public void like() 20 { 21 likes++; 22 } 23 24 25 26 27 public void unlike() 28 { 29 if (likes > 0) { 30 likes--; 31 } 32 } 33 { 034 comments.add(text); 35 } S 36 ) import java.util.ArrayList; public class CommentedPost extends Post { protected int likes; protected ArrayList comments; public CommentedPost (String username) { super(username); comments =new ArrayList0>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!