Question: What is encapsulation?
- defining classes by focusing on what is important for a purpose
- hiding the data and implementation details within a class
- making all methods private
- using words to define classes
Answer: The correct answer of the above question is Option B:hiding the data and implementation details within a class