Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Hello
- def initialize (firstname, lastname, phone)
- @time = Time.now;
- @firstname, @lastname, @phone = firstname, lastname, phone
- end
- def greet
- puts "Hello #{@firstname}!"
- end
- end
- hi = Hello.new('Mitchell', 'Cooper', '555-5555')
- hi.greet()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement