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






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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
