CS计算机代考程序代写 # ===========================================

# ===========================================
# =====DON’T modify the following code=======
# ===========================================

class Ship
attr_reader :start_position, :orientation, :size

def initialize(start_position, orientation, size)
@start_position = start_position
@orientation = orientation
@size = size
end

def to_s
“Ship: #{@start_position}, #{orientation}, #{@size}”
end
end

Leave a Reply

Your email address will not be published. Required fields are marked *