[Tutor] Creating a pojo in python

rakesh sharma rakeshsharma14 at hotmail.com
Mon Feb 9 08:20:23 CET 2015


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? 		 	   		  


More information about the Tutor mailing list