State and Behavior
Learn why encapsulation is an important idea.
We'll cover the following
Data and methods
Let’s have another look at our class definition for Person
:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy