Skip to content


Inheritance section needs a much better example #58

moritz opened this Issue · 1 comment

2 participants

Perl 6 member

In chapter "Classes and Objects", the "Inheritance" section uses Emplyee/Programmer/Cook/Baker/GeekCook as example.

The problem with is that it's pretty arbitrary, there doesn't seem to be an problem it actually solves. One doesn't know what behavior to expect from the classes, since there's no use case.

Instead a problem should be stated, to which a rather natural solution involves inheritance and polymorphism.

See also:

Perl 6 member

Perhaps we could steal Jonathan's travel agency example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.