Ages 16–18 · A Level · Foundation
Encapsulation
Apply programming paradigms to justify a solution to the encapsulation task.
Understand the idea
Programming models affect state sharing interfaces and concurrency.
Your challenge
What does encapsulation support?
- Removing all methods
- Controlling access to internal state through an interface
- Making every field globally writable
How to explore
- Identify the inputs, goal or constraint in this programming paradigms situation.
- Work through the stated rule or operation without adding assumptions.
- Check your proposed response against every relevant detail in the question.
Open the activity to work with its controls and check your reasoning. Progress stays in this browser.
Keep exploring
DON’T LET THE QUESTION END HEREGive that curiosity
Open the learning space