class Person
attr_reader :first_name, :last_name
def initialize(first_name, last_name)
@first_name = first_name
@last_name = last_name
end
def full_name
"#{first_name} #{last_name}"
end
def say_hello
puts "hello, world! hello, dev.to! My name is #{full_name}"
end
end
me = Person.new('Akira', 'Suenami')
me.say_hello
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)