Question: 5. Given the following class: (3 points) public class MessageBox( nt x int y: String textMessage; Color color // Constructor public MessageBoxDX // Code here
5. Given the following class: (3 points) public class MessageBox( nt x int y: String textMessage; Color color // Constructor public MessageBoxDX // Code here to randomly generate color public void setPosition(Point pX Public void setMessage(String messageH textMessage message; Override the equals() method so that you can check in a meaningful way that two MessageBox are the same. 6. What does it practically mean for code to be elegant? (5 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
