Jim Krang wrote:The symbol x cannot be verified in the fourth line.
You are incorrect! The study guide is absolutely spot-on! This code snippet compiles successfully and will print 8.Therefore the TernaryTester class is valid and will compile successfully (without any errors).
Can you explain why you think the symbol x can't be verified in line4?