mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-03 21:02:42 +08:00
Upate too 21_classes_and_objects.md
This commit is contained in:
parent
cbc3dc273e
commit
5c36b2d295
@ -180,7 +180,7 @@ Asabeneh Yetayeh is 250 years old. He lives in Helsinki, Finland
|
||||
|
||||
### Object Default Methods
|
||||
|
||||
Sometimes, you may want to have a default values for your object methods. If we give default values for the parameters in the constructor, we can avoid errors when we call or instantiate our class without parameters. Let's see how it looks:
|
||||
Sometimes, you may want to have default values for your object methods. If we give default values for the parameters in the constructor, we can avoid errors when we call or instantiate our class without parameters. Let's see how it looks:
|
||||
|
||||
**Example:**
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user