mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): change 'property' to 'attribute' (#65127)
This commit is contained in:
+8
-7
@@ -77,7 +77,7 @@ Seeders and databases.
|
||||
|
||||
#### --answer--
|
||||
|
||||
Properties and methods.
|
||||
Attributes and methods.
|
||||
|
||||
### --question--
|
||||
|
||||
@@ -87,19 +87,19 @@ What is single inheritance?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
A child class inheriting properties and methods from a single function.
|
||||
A child class inheriting attributes and methods from a single function.
|
||||
|
||||
---
|
||||
|
||||
A child class inheriting properties and methods from multiple functions.
|
||||
A child class inheriting attributes and methods from multiple functions.
|
||||
|
||||
---
|
||||
|
||||
A child class inheriting properties and methods from multiple classes.
|
||||
A child class inheriting attributes and methods from multiple classes.
|
||||
|
||||
#### --answer--
|
||||
|
||||
A child class inheriting properties and methods from a single class.
|
||||
A child class inheriting attributes and methods from a single class.
|
||||
|
||||
### --question--
|
||||
|
||||
@@ -415,11 +415,11 @@ Which of the following statements best describes polymorphism in OOP?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
It allows a class to have multiple constructors with different properties and methods.
|
||||
It allows a class to have multiple constructors with different attributes and methods.
|
||||
|
||||
---
|
||||
|
||||
It allows a class to inherit properties and methods from another class.
|
||||
It allows a class to inherit attributes and methods from another class.
|
||||
|
||||
---
|
||||
|
||||
@@ -444,6 +444,7 @@ To make the attribute completely private and inaccessible from outside the class
|
||||
To improve performance by storing attributes more efficiently.
|
||||
|
||||
---
|
||||
|
||||
To automatically convert attributes into read-only properties.
|
||||
|
||||
#### --answer--
|
||||
|
||||
Reference in New Issue
Block a user