source: java2python/core/test/testcode/Person.py@ 425

Last change on this file since 425 was 404, checked in by wouter, 2 years ago

#122 refactoring, creating separate packages for java core and jackson-translator (jackson-t)

File size: 342 bytes
Line 
1import sys
2from typing import List
3
4class Person:
5 def __init__(self, nm:str):
6 self.__name:str
7 self.__name=nm
8 #Override
9 def __repr__(self) -> str:
10 return "Person[" + self.__name + "]"
11 @staticmethod
12 def main(args:List[str]) -> None:
13 sys.stdout.write(str(Person("Kees"))+'\n')
14if __name__ == "__main__":
15 Person.main(sys.argv[1:])
Note: See TracBrowser for help on using the repository browser.