-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eafee3e
commit 3d5e9ad
Showing
3 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
require_relative 'person' | ||
|
||
class Student < person | ||
def initialize(age, name = ‘Unknown’, parent_permission: true, classroom ) | ||
super(age,name, parent_permission) | ||
class Student < Person | ||
def initialize(classroom) | ||
super(age, name, parent_permission: parent_permission) | ||
@classroom = classroom | ||
end | ||
|
||
def play_hooky | ||
"¯\\_(ツ)_/¯" | ||
'¯\\_(ツ)_/¯' | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
require_relative 'person' | ||
|
||
class Teacher < Person | ||
def initialize(age, name = ‘Unknown’, parent_permission: true, specialization ) | ||
super(age,name, parent_permission) | ||
def initialize(specialization) | ||
super(age, name, parent_permission) | ||
@specialization = specialization | ||
end | ||
|
||
def can_use_services? | ||
true | ||
end | ||
end | ||
end |