Hello fellow perl users,
I have been trying to understand perl 6 oop implementation, and one thing I
still can't figure out is how to call super class methods from lower classes.
Let's say we have two classes, Person and Employee, and the method I am trying
to access is the object constructor:
class Person {
method new ($argument) {
#do some things
}
}
class Employee is Person {
method new () {
#call here Person's method new
#do more things
}
}
Can I call the Person's constructor (in non static context), pass the required
parameter and do more things before returning?
Regards,
Emiliano