Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Information
- def initialize(age, name, hometown)
- @age = age
- @name = name
- @hometown = hometown
- end
- def print_info
- puts "Hello #{@name}! You are #{@age} and you live in #{@hometown}."
- end
- end
- info = Information.new(25, "Kyle", "Vallejo")
- info.print_info
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement