mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-22 13:00:56 -04:00
fix(curriculum): Fixing Typo in Learn Interfaces by-Building an Equation Solver Step 11 (#55577)
This commit is contained in:
@@ -7,7 +7,7 @@ dashedName: step-11
|
||||
|
||||
# --description--
|
||||
|
||||
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
|
||||
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
|
||||
|
||||
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user