samples.categories.methods.arguments-anonymous.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
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 - 2024 Weber Informatics LLC | Privacy Policy