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
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor