Skip to main content
Guest
My Media
My Playlists
My History
Login
Search
Add New
Media Upload
Guest
My Media
My Playlists
My History
Login
Cornell University
Cornell University
Close search in video box
Home
Channels
My Media
Help
Back
Top
All
Home
Channels
My Media
Help
Play
Play
Back to video
00:00
Play
Seek 10 seconds backwards
Seek 10 seconds forward
00:00 / 00:00
Mute
Picture in picture
Fullscreen
Lesson 21.6 Immutable Attributes
From
Hannah Lee
October 30, 2020
views
Related Media
Loading…
Details
Details
.
.
.
Details
.
.
.
Back
Getters and setters have another advantage in that they allow us to completely disable to any changes to an attribute. This allows us to separate attributes into mutable and immutable attributes, just like we saw in Assignment 4.
Tags
attribute
person
turtle
setter
attributes
setters
getters
initializer
class
things
definition
preconditions
getter
alright
underscore
distinction
error
fact
statement
assignment
Looking for more...