
samples.categories.copy-overwrite.pec Maven / Gradle / Ivy
define city as Text attribute
define Candidate as category with attributes name and city
define role as Text attribute
define Employee as category with attributes name, city and role
define main as method doing:
john = Candidate with "John" as name and "Tokyo" as city
new_joiner = Employee from john with "developer" as role and "Mumbai" as city
printLine new_joiner
© 2015 - 2025 Weber Informatics LLC | Privacy Policy