
samples.categories.methods.arguments-mixed.pec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WebSite Show documentation
Show all versions of WebSite Show documentation
Prompto Documentation Web Site POM
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