Created
November 26, 2013 02:24
-
-
Save hchood/7652565 to your computer and use it in GitHub Desktop.
OOP Fundamentals I: Assignment 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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