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

samples.categories.methods.arguments-anonymous.pec Maven / Gradle / Ivy

define brand as Text attribute
define Person as category with attribute name, and methods:

    define printMessage as method receiving any x with attribute brand doing:
        printLine this.name + " loves " + x.brand

define Product as category with attribute brand

define main as method doing:
    product = Product with "Prompto" as brand
    person = Person with "Shubadha" as name
    person.printMessage product




© 2015 - 2025 Weber Informatics LLC | Privacy Policy