Posted By

bsrinivasan92 on 01/31/12


Tagged


Versions (?)

Inventor class


 / Published in: Ruby
 

class

  1. class Inventor
  2. attr_accessor :fname, :lname, :city, :state, :country
  3. def initialize(fname, lname, city, state, country)
  4. @fname=fname
  5. @lname=lname
  6. @city=city
  7. @state=state
  8. @country=country
  9. end
  10. end

Report this snippet  

You need to login to post a comment.