#!/usr/bin/ruby
class Dev
def initialize(devName, years_of_working, *languages)
@name=devName
@years_of_working=years_of_working
@languages = languages;
end
def display_details()
puts "Hi all. This is #@name."
puts "I have a working experience of #@years_of_working years."
puts "Here are my languages: #@languages."
puts "So glad to join the OO_Bootcamp!"
end
end
Rundong_Lian = Dev.new("Rundong Lian", 1.5, "Java", "JavaScript", "Ruby")
Rundong_Lian.display_details
Hi all. This is Rundong Lian.
I have a working experience of 1.5 years.
These are my languages: ["Java", "JavaScript", "Ruby"]
So glad to join the OO_Bootcamp.