Skip to content
Open

Done #1033

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/dog.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# define Dog class
class Dog
# define #bark that puts "Woof!"
def bark
puts "Woof!"
end
# define #sit => puts "The Dog is sitting"
def sit
puts "The Dog is sitting"
end
end
11 changes: 11 additions & 0 deletions lib/person.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# define Person class
class Person
# define #walk => puts "The Person is walking"
def walk
puts "The Person is walking"
end
# define #talk => puts "Hello World!"
def talk
puts "Hello World!"
end
end