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

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

The newest version!
define brand as Text attribute
define Product as category with attribute brand

define Person as category with attribute name, and methods:

    define printMessage as method receiving brand and Integer score doing:
        printLine this.name + " rates " + brand + " with " + score + " stars"

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy