1
2
3
4
5
6
7
8
9
class Airplane
  attr_accessor :type, :code, :seats, :year_made
  def initialize(type, code, seats, year_made)
    @type = type
    @code = code
    @seats = seats
    @year_made = year_made
  end
end