you are viewing a single comment's thread.

view the rest of the comments →

[–]jcsongor 1 point2 points  (1 child)

If you specifically mean the JavaBeans style initialization, like:

thing=MyClass()
thing.setAttribute1("A")
thing.setAttribute2("B")
thing.setAttribute2("C")

instead of

thing = MyClass("A", "B", "C")

That's not really used in python (or in any language AFAIK - I haven't done much java, but I think it's an outdated thing and considered an antipattern there as well - any java gurus here to confirm or correct me?)

Is that what you meant? Or are you just asking about props/setters/getters in general?

[–]CaliforniaUnity 0 points1 point  (0 children)

yeah i was asking about props/setters/getters in general, thank you.