mop problem 1 - mop can't have protected attribute variable
mop can't have protected attribute variable. All attribute variable is private in the class.
use mop;class Point {
has $x; # private attribute variable
has $y; # private attribute variable
}class Point3D extends Point {
method foo {
# We can't access $x and $y.
}
}
If object is hash based object, this is resolved by the following way.
class Point { method init { $self->{_x} = 3; } }
class Point3D extends Point {
method foo {
/users/yuki_kimoto/2014/04/index.html