2020-04-06 14:49:56 -04:00
|
|
|
---
|
|
|
|
id: 5e7b9f170b6c005b0e76f088
|
2020-04-21 23:37:02 -05:00
|
|
|
title: 'Objects: Inheritance'
|
2020-04-06 14:49:56 -04:00
|
|
|
challengeType: 11
|
|
|
|
videoId: FBL3alYrxRM
|
|
|
|
---
|
|
|
|
|
|
|
|
## Description
|
|
|
|
<section id='description'>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
## Tests
|
|
|
|
<section id='tests'>
|
|
|
|
|
|
|
|
```yml
|
|
|
|
question:
|
2020-05-31 13:57:09 +01:00
|
|
|
text: |
|
|
|
|
What is inheritance in object-oriented programming?
|
|
|
|
|
2020-04-06 14:49:56 -04:00
|
|
|
answers:
|
2020-05-31 13:57:09 +01:00
|
|
|
- |
|
|
|
|
A new class created when a parent class is extended.
|
|
|
|
- |
|
|
|
|
A constructed instance of a class.
|
|
|
|
- |
|
|
|
|
The ability to create a new class by extending an existing class.
|
|
|
|
- |
|
|
|
|
A method that is called at the moment when a class is being used to construct an object.
|
2020-04-06 14:49:56 -04:00
|
|
|
solution: 3
|
|
|
|
```
|
|
|
|
|
|
|
|
</section>
|