tw-oocamp-201512 / the-code-of-you

使用你最喜欢的语言写一段代码来介绍你自己,提交在Issues里
1 stars 1 forks source link

Rundong's Intro #12

Open chendexiaqu opened 9 years ago

chendexiaqu commented 9 years ago
#!/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
chendexiaqu commented 9 years ago

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.