
samples.enumerations.attributes.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 motor as Boolean attribute
define seats as Integer attribute
define Vehicle as enumerated category with attributes motor and seats, and symbols:
BICYCLE with false as motor and 1 as seats
MOTORBIKE with true as motor and 2 as seats
CAR with true as motor and 4 as seats
define main as method doing:
printLine "BICYCLE.name -> " + BICYCLE.name
printLine "Vehicle.symbols -> " + Vehicle.symbols
© 2015 - 2025 Weber Informatics LLC | Privacy Policy