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
Saved
Saved