1Z0-811 Object-Oriented Programming • Set 5
1Z0-811 Object-Oriented Programming Practice Test 5 — 15 questions with explanations. Free, no signup.
A developer is working on a Java application that processes sensor data. The code uses a class 'SensorDataProcessor' which directly instantiates specific sensor classes like 'TemperatureSensor' and 'PressureSensor' inside its methods. The team wants to make the system extensible to support new sensor types without modifying the processor class. Which design change best achieves this?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.