Students, please be sure to log in. This site does not use cookies and cannot store work submitted when not signed in.

Unit 5 Problems

Party

Consider the class Party. The block of code below runs but does not produce the correct result when calling toString. Fix the class so that it works correctly. Note, the issue is not with toString method. This is a common issue with student codes.

Party p = new new Party("Birthday", "14", 20);
String res = p.toString();

Block of Code
Output
Party p = new new Party("Birthday", "14", 20);
String res = p.toString();

:0:0


Type your solution        
Skills Practiced:
3.B
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.