Hi I have tried several times to create Getter and Setter methods in my project but failed.
The code is this: type Human = ref object of RootObj age: int job: string height: int weight: int var Frank : Human proc getAge(a: Human, age: int): int = return a.age Frank = Human(age: 67) echo Frank.age ("This works) getAge(Frank, age) ("This does not work") How do I create a Getter and a Setter method to set the age of the Frank object?