data startprintf("number% \ "data)/python print goes to stdout /orcout <"number<data <endlnumber::~number(printf("~number% \ "data)void number::add(int valuedata +valueprintf("add % \ "value)void number::sub(int valuedata -valueprintf("sub % \ "value)int number::square(return data data/if print labelfflush(stdoutor cout <flush void number::display(printf("number=% \ "data)so that you can compare languagesthe following is how this class is used in +program example - makes number objectcalls its methodsand fetches and sets its data attribute directly ( +distinguishes between "membersand "methods,while they're usually both called "attributesin pythonexample - pp \integrate\extend\swig\shadow\main cxx #include "iostream #include "number hmain(number *numint resvalnum new number( )num->add( )num->display()num->sub( )num->display()/make +class instance /call its methods res num->square()cout <"square<res <endl/method return value num->data val num->datacout <"data<val <endl/set +data member /fetch +data member python/ integration