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
Something went wrong
An error occurred, please try again later.
Copy for customer care: session ID undefined
Copy URL
Try again
Lesson 21.6 Immutable Attributes
From
Hannah Lee
October 30, 2020
99 plays
99
Related Media
Loading…
Details
Details
Share
Details
Share
Close search in video box
To search for an exact match, please use Quotation Marks. Example: “computer”
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
Appears In
CS 1110 Fall 2020
Link to Media Page
Link to Media Page
Embed
oEmbed
Email
Link to Media Page
Embed
oEmbed
Email
Start & End Time:
Start Time:
Start at
hh/mm/ss
Set current video time as start time
End at
hh/mm/ss
Set current video time as end time
Share this media via Email
Share by email
Loading
Related Media
Loading…
Copy debug info