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

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

There is a newer version: 0.0.74
Show newest version
define brand as Text attribute
define Product as category with attribute brand
define family as Text attribute
define Software as Product with attribute family

define Person as category with attribute name, and methods:

    define printMessage as method receiving Product p with attribute family doing:
        printLine this.name + " uses the " + p.brand + " " + p.family

define main as method doing:
    software = Software with "Prompto" as brand and "programming language" as family
    person = Person with "Shubadha" as name
    person.printMessage software




© 2015 - 2024 Weber Informatics LLC | Privacy Policy