Answered step by step
Verified Expert Solution
Question
1 Approved Answer
One of your co-workers is working on a re-posting feature (user posts someone else's post under their account). It includes the code below. Describe what
One of your co-workers is working on a re-posting feature (user posts someone else's post under their account). It includes the code below. Describe what design problems are created by this implementation. public abstract class Post { private Group mGroup; private User mPostedUser; public Group getGroup(){ return mGroup; } public User getPostedUser() { return mPostedUser ]; public class RePost extends Post { private Post mRepost; public String getPostedUser() { return mRepost.getPostedUser()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started