PCAP Object-Oriented Programming • Set 2
PCAP Object-Oriented Programming Practice Test 2 — 15 questions with explanations. Free, no signup.
A developer wants to ensure that an attribute 'balance' of a BankAccount class cannot be accessed directly from outside the class but can be accessed through a method. Which approach should be used?