samples.categories.methods.arguments-extended.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 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