2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
id: 5e7b9f170b6c005b0e76f088
|
|
|
|
challengeType: 11
|
|
|
|
videoId: FBL3alYrxRM
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: objects-inheritance
|
2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
|
|
|
What is inheritance in object-oriented programming?
|
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
3
|
|
|
|
|