From 256451038a526f145bb30361eda1e5d3cd05fd74 Mon Sep 17 00:00:00 2001 From: Liam Simmons Date: Mon, 15 Jul 2024 11:57:02 -0400 Subject: [PATCH] Create student and ChattyStudent classes --- lib/chatty_student.rb | 10 ++++++++++ lib/student.rb | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/lib/chatty_student.rb b/lib/chatty_student.rb index e69de29b..1d9f4d4c 100644 --- a/lib/chatty_student.rb +++ b/lib/chatty_student.rb @@ -0,0 +1,10 @@ +class ChattyStudent < Student + def hello + super + puts "How are you doing today? I'm okay, but I'm kind of tired. Did you watch The Walking Dead last night? You didn't?! Oh man, it was so crazy! What, you don't want any spoilers? Okay well let me just tell you who died..." + end + + def raise_hand + 10.times { super } + end +end diff --git a/lib/student.rb b/lib/student.rb index e69de29b..d277cd4f 100644 --- a/lib/student.rb +++ b/lib/student.rb @@ -0,0 +1,9 @@ +class Student + def hello + puts "Hey there! I'm so excited to learn stuff." + end + + def raise_hand + puts "Pick me!" + end +end