
samples.categories.methods.overloading-count.pec Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy