Skip to content

Instantly share code, notes, and snippets.

@hchood
Created November 26, 2013 02:24
Show Gist options
  • Save hchood/7652565 to your computer and use it in GitHub Desktop.
Save hchood/7652565 to your computer and use it in GitHub Desktop.
OOP Fundamentals I: Assignment 2
# OOP Fundamentals I: Assignment 2
class Television
def initialize(brand, display_type, width, height)
@brand = brand
@display_type = display_type
@width = width
@height = height
end
end
class TelevisionChannel
def initialize(name, channel_num)
@name = name
@channel_num = channel_num
end
end
class TelevisionShow
def initialize(name, channel, air_day, air_time, duration, genre)
@name = name
@channel = channel
@air_day = air_day
@air_time = air_time
@duration = duration
@genre = genre
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment