Open in app
Maximiliano Contieri
415 Followers
About

Sign in

415 Followers
About
Open in app

Also, we would have to create many different getter and setter methods in the same class for different type of messages.

Applying OOP in Real World Applications
1.1K
3

Jaidev Singh Bhui

Maximiliano Contieri

Maximiliano Contieri

Aug 2, 2020·1 min read

Please don't

Setters break the encapsulation you pondered above

keep stuff private

https://medium.com/dev-genius/nude-models-part-i-setters-77ac784a91f3

Written by

Maximiliano Contieri

I’m senior software engineer specialized in declarative designs. S.O.L.I.D. and agile methodologies fan.

More from Maximiliano Contieri

I’m senior software engineer specialized in declarative designs. S.O.L.I.D. and agile methodologies fan.

More From Medium

Singleton: The Root of all Evil

Maximiliano Contieri in codeburst

What exactly is a name? — Part I: The Quest

Maximiliano Contieri in Dev Genius

How to Decouple a Legacy System

Maximiliano Contieri in Dev Genius

Software Engineering Great Quotes

Maximiliano Contieri in Dev Genius

Programming as Theory Building

Maximiliano Contieri in Dev Genius

Nude Models — Part I : Setters

Maximiliano Contieri in Dev Genius

Laziness I: Meta-programming

Maximiliano Contieri in codeburst

Laziness II: Code Wizards

Maximiliano Contieri in codeburst

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store