Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
I can't find why it doesn't print "Color"
2 ответов
+ 2
because you're trying to print object instead of printing it's variable.
Try this (line 35):
System.out.println(x.getColor());
0
Thank you! It worked Someone Other