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

Last change on this file since 519 was 498, checked in by wouter, 18 months ago

add random test to Math

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