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

Update Q17 answer in python-quiz #7088

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

giovanibs
Copy link

PR Checklist

This PR is ready for review and meets the requirements set out
in Suggestion how to contribute

DOD

  • I have added new quiz{'s}
  • I have added new reference link{'s}
  • I have made small correction/improvements

Changes / Instructions

The answer to Q17 is not marked correctly. The last statement is true, since encapsulation typically restricts direct access to the data, allowing it to be changed only through methods provided within the class. On the other hand, the second statement is false, since inheritance allows the child class to use the fields (data) and methods of the parent class. Therefore the second statement should be marked since it does NOT describe encapsulation.

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

Successfully merging this pull request may close these issues.

1 participant