All Downloads are FREE. Search and download functionalities are using the official Maven repository.

samples.categories.methods.overloading-count.pec Maven / Gradle / Ivy

There is a newer version: 0.0.74
Show newest version
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