curriculum/challenges/english/blocks/learn-how-to-clarify-misunderstandings/67e912996b44d56ad488a9ba.md
Listen to the audio and complete the sentence below.
Not exactly. "Inheritance" is when one class inherits properties and methods from another class, allowing for BLANK and BLANK functionality within a project.
code reuse
This two-word phrase means using existing code again in new parts of a program instead of writing it from scratch.
extending
This word means adding new features or behaviors to something that already exists. It ends with -ing.
Code reuse refers to the practice of using existing code in new parts of a program. For example:
The "Login" class was used in multiple applications to handle user access, which is a good example of code reuse. - Instead of writing login logic for every app, the same code is reused, improving efficiency.
Extending means adding new features to something that already exists. For example:
The "AdminUser" class extends the basic "User" class by adding an "approveUser()" method. - The AdminUser keeps everything from User and builds on it with new capabilities.
{
"setup": {
"background": "company2-center.png",
"characters": [
{
"character": "Sophie",
"position": {
"x": 50,
"y": 0,
"z": 1.4
},
"opacity": 0
}
],
"audio": {
"filename": "B1_16-1.mp3",
"startTime": 1,
"startTimestamp": 52.88,
"finishTimestamp": 62.38
}
},
"commands": [
{
"character": "Sophie",
"opacity": 1,
"startTime": 0
},
{
"character": "Sophie",
"startTime": 1,
"finishTime": 10.5,
"dialogue": {
"text": "Not exactly. Inheritance is when one class inherits properties and methods from another class, allowing for code reuse and extending functionality within a project.",
"align": "center"
}
},
{
"character": "Sophie",
"opacity": 0,
"startTime": 11
}
]
}