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

Implement inheritance #8

Open
itssamuelrowe opened this issue Apr 13, 2020 · 0 comments
Open

Implement inheritance #8

itssamuelrowe opened this issue Apr 13, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@itssamuelrowe
Copy link
Owner

Inheritance is a very important feature of object-oriented programming, a mechanism which allows one class to inherit the behaviors and attributes from another class. Inheritance allows you to create a hierarchy of classes. Thus, it has a direct impact on the design of programs written in Zen.

The design of inheritance should address the following questions.

  • Single inheritance or multiple inheritance?
  • In case of multiple inheritance, how is the diamond inheritance problem addressed?
  • What happens when two classes in an hierarchy have fields with the same names?
  • How are super constructors invoked?
  • What about abstract methods?
  • What about interfaces?
@itssamuelrowe itssamuelrowe added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant