samples.categories.methods.overloading-count.pec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WebSite Show documentation
Show all versions of WebSite Show documentation
Prompto Documentation Web Site POM
define SomeCategory as category with attribute text, and methods:
define overloadedMethod as method receiving Integer x doing:
printLine text + " with 1 argument:" + x
define overloadedMethod as method receiving Integer x and Integer y doing:
printLine text + " with 2 arguments:" + x + " and " + y
define main as method doing:
cat = SomeCategory with "Called" as text
cat.overloadedMethod with 3 as x and 7 as y
© 2015 - 2024 Weber Informatics LLC | Privacy Policy