Which of these is an example of encapsulation?

(1 point)
O putting methods and attributes in a class
O creating short documentation
editing code to make it Pythonic
O putting arrays inside of another array

1 answer

Putting methods and attributes in a class is an example of encapsulation.