/*PLEASE DO NOT EDIT THIS CODE*/ /*This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language!*/ package example; // line 3 "../SingleGenTest.ump" public class Person { //------------------------ // MEMBER VARIABLES //------------------------ //Person Attributes private String name; private int age; //------------------------ // CONSTRUCTOR //------------------------ public Person(String aName, int aAge) { name = aName; age = aAge; } //------------------------ // INTERFACE //------------------------ public boolean setName(String aName) { boolean wasSet = false; name = aName; wasSet = true; return wasSet; } public boolean setAge(int aAge) { boolean wasSet = false; age = aAge; wasSet = true; return wasSet; } public String getName() { return name; } public int getAge() { return age; } public void delete() {} public String toString() { return super.toString() + "["+ "name" + ":" + getName()+ "," + "age" + ":" + getAge()+ "]"; } } /*PLEASE DO NOT EDIT THIS CODE*/ /*This code was generated using the UMPLE 1.35.0.7523.c616a4dce modeling language!*/ package example; // line 8 "../SingleGenTest.ump" public class Mentor extends Person { //------------------------ // MEMBER VARIABLES //------------------------ //Mentor Attributes private String class; //------------------------ // CONSTRUCTOR //------------------------ public Mentor(String aName, int aAge, String aClass) { super(aName, aAge); class = aClass; } //------------------------ // INTERFACE //------------------------ public boolean setClass(String aClass) { boolean wasSet = false; class = aClass; wasSet = true; return wasSet; } public String getClass() { return class; } public void delete() { super.delete(); } public String toString() { return super.toString() + "["+ "class" + ":" + getClass()+ "]"; } }