[Tutor] Creating a pojo in python
Mark Lawrence
breamoreboy at yahoo.co.uk
Mon Feb 9 17:08:34 CET 2015
On 09/02/2015 07:20, rakesh sharma wrote:
> How can one create a POJO in python.I mean a class like this
> class A { private a; private b; public getA() { return a; } public getB() { return b }}
> I tried creating class in python but the variables were accessible as public data members.
> Any help?
Further to the answers from Alan Gauld and Danny Yoo I suggest that you
read http://dirtsimple.org/2004/12/python-is-not-java.html and
http://dirtsimple.org/2004/12/java-is-not-python-either.html
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Tutor
mailing list