diff --git a/lib/dog.rb b/lib/dog.rb index e69de29b..0639f681 100644 --- a/lib/dog.rb +++ b/lib/dog.rb @@ -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 diff --git a/lib/person.rb b/lib/person.rb index e69de29b..382872b3 100644 --- a/lib/person.rb +++ b/lib/person.rb @@ -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