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 | |
---|
1 | import sys
|
---|
2 | from typing import List
|
---|
3 |
|
---|
4 | class 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')
|
---|
14 | if __name__ == "__main__":
|
---|
15 | Person.main(sys.argv[1:])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.