Exercise 4.3: Ouput identical with expected output but testcase failed
Closed this issue · 4 comments
kennethSty commented
DanLinhHuynh-Niwashi commented
There is no white space required, I just directly printed it out just like you.
You may check if your output has an extra return or sth like that?
jemehgoh commented
Check your code for the Rectangle() and Circle() classes on Coursemology. Did you inherit from the Shape() class? (I had this problem with this exercise)
skylee03 commented
In addition to public test cases, there are also hidden test cases. Your error may be caused by your OOP implementation not meeting the requirements, such as not having extends Shape
.
DanLinhHuynh-Niwashi commented
If the program was successfully built, i think this may not the case.
As you store all of your instances in a list/ array of type Shape.