Created
March 3, 2014 16:48
-
-
Save adeng21/9329126 to your computer and use it in GitHub Desktop.
Class Constructors
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
| class Television | |
| def initialize(brand, model) | |
| @brand = brand | |
| @model = model | |
| end | |
| end | |
| class TelevisionChannel | |
| def initialize(name, channel_number) | |
| @name = name | |
| @channel_number = channel_number | |
| end | |
| end | |
| class TelevisionShow | |
| def initialize(name, time) | |
| @name = name | |
| @time = time | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment