A mutable object is an object whose state can be modified after it is created. In other words, you can change the values of its attributes or properties.
Immutable Object: An immutable object is the opposite of a mutable object. Once an immutable object is created, its state cannot be changed.
Attribute: An attribute refers to a characteristic or property of an object. It represents the data associated with the object.
Method: A method is a set of instructions that defines what actions an object can perform. It represents the behavior of an object.
AP Computer Science A - 5.2 Constructors
Study guides for the entire semester
200k practice questions
Glossary of 50k key terms - memorize important vocab
About Fiveable
Blog
Careers
Code of Conduct
Terms of Use
Privacy Policy
CCPA Privacy Policy
Cram Mode
AP Score Calculators
Study Guides
Practice Quizzes
Glossary
Cram Events
Merch Shop
Crisis Text Line
Help Center
About Fiveable
Blog
Careers
Code of Conduct
Terms of Use
Privacy Policy
CCPA Privacy Policy
Cram Mode
AP Score Calculators
Study Guides
Practice Quizzes
Glossary
Cram Events
Merch Shop
Crisis Text Line
Help Center
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.