PCAP Object-Oriented Programming • Set 9
PCAP Object-Oriented Programming Practice Test 9 — 15 questions with explanations. Free, no signup.
A class has a class attribute that is a list. A developer modifies this list via one instance, and the change is reflected in all other instances. What is the best practice to avoid this unintended sharing?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.