Quotessence
Home / Quotes / Quote / Image

Quote image editor Brian Goetz

Back to previous page

“Once an object escapes, you have to assume that another class or thread may, maliciously or carelessly, misuse it. This is a compelling reason to use encapsulation: it makes it practical to analyze programs for correctness and harder to violate design constraints accidentally.” — Brian Goetz

Quote 1080 x 1350 Instagram portrait
More
Platforms
Pure ratios
Once an object escapes, you have to assume that another class or thread may, maliciously or carelessly, misuse it. This is a compelling reason to use encapsulation: it makes it practical to analyze programs for correctness and harder to violate design constraints accidentally.
— Brian Goetz