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

Ooops - Constructor section, polymorphism section #305

Open
abrennec opened this issue Mar 23, 2019 · 0 comments
Open

Ooops - Constructor section, polymorphism section #305

abrennec opened this issue Mar 23, 2019 · 0 comments

Comments

@abrennec
Copy link

abrennec commented Mar 23, 2019

Hi,
I would like to suggest two improvements to the oop chapter: 1 concerns the subsection "Make even more Objects from your Class: properties and constructors"; 2 concerns the subsection "Quick intro to polymorphism (inheritance)".

1 - Following the section title, I would expect that the class constructor is going to be explained and used, i.e., Ball:Ball(). As far as I understand the code examples and section description, however, it does not actually describe what a class constructor is and how it is different from a normal function like, i.e., setup(). This should be improved, I suggest.
A quick resolution would be to simply change the section title to "Make even more Objects from your Class" (and add a reference to more details on constructors). My question regarding this issue is, why isn't the constructor being used?

2 - Polymorphism is not sufficiently described in the example. A fix would be changing the title to "Quick intro to inheritance".

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

No branches or pull requests

1 participant