
samples.categories.methods.calling-named.pec Maven / Gradle / Ivy
define Person as category with attribute name, and methods:
define welcome as method receiving Text prefix and Text suffix doing:
printLine prefix + name + suffix
define main as method doing:
person = Person with "Marylin" as name
person.welcome with ", how are you?" as suffix and "Hello " as prefix
© 2015 - 2025 Weber Informatics LLC | Privacy Policy