Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inheritance section needs a much better example #58

Open
moritz opened this issue Aug 23, 2011 · 3 comments
Open

Inheritance section needs a much better example #58

moritz opened this issue Aug 23, 2011 · 3 comments
Labels

Comments

@moritz
Copy link
Contributor

moritz commented Aug 23, 2011

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: http://lists.canonical.org/pipermail/kragen-tol/2011-August/000937.html

@pmichaud
Copy link
Contributor

Perhaps we could steal Jonathan's travel agency example?

@AlexDaniel
Copy link
Member

Bump!
The docs have a TODO notice written right in the text: http://doc.perl6.org/language/classtut#Inheritance
That's not nice, especially given that this issue is from 2011.

@coke
Copy link
Contributor

coke commented Jun 21, 2016

The book is pretty much dead. Can we get this issue copied over to the doc site?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants