Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
39 lines
593 B
Markdown
39 lines
593 B
Markdown
---
|
|
id: 5e7b9f170b6c005b0e76f088
|
|
title: 'Objects: Inheritance'
|
|
challengeType: 11
|
|
videoId: FBL3alYrxRM
|
|
bilibiliIds:
|
|
aid: 631990691
|
|
bvid: BV1sb4y1r7GF
|
|
cid: 377529901
|
|
dashedName: objects-inheritance
|
|
---
|
|
|
|
# --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
|
|
|