Exam-style question
Try this first
What does encapsulation in programming refer to?.
- A.Hiding code from users
- B.Grouping related functions together
- C.Making code run faster
- D.Using fewer variables
Answer and explanation
Concise answer
Grouping related functions together
Why this is correct
Encapsulation helps in organizing code and improving maintainability by keeping related functionalities together.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
