mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
commit
50444ed21f
@ -267,7 +267,7 @@ class Human
|
|||||||
@@species = "H. sapiens"
|
@@species = "H. sapiens"
|
||||||
|
|
||||||
# Basic initializer
|
# Basic initializer
|
||||||
def initialize(name, age=0):
|
def initialize(name, age=0)
|
||||||
# Assign the argument to the "name" instance variable for the instance
|
# Assign the argument to the "name" instance variable for the instance
|
||||||
@name = name
|
@name = name
|
||||||
# If no age given, we will fall back to the default in the arguments list.
|
# If no age given, we will fall back to the default in the arguments list.
|
||||||
|
Loading…
Reference in New Issue
Block a user