Created
March 7, 2015 03:27
-
-
Save jonathanenlared/acfa96f165c32f59bc11 to your computer and use it in GitHub Desktop.
This file contains 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 Students | |
attr_reader :name, :last, :age | |
def initialize(nombre, apellido, age) | |
@name = name | |
@last = last | |
@age = age | |
@@average = 0 | |
end | |
def self.average | |
end | |
def complete_name | |
complete_name = @name + " " + @last | |
complete_name | |
end | |
def age=(age) | |
@age = age | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment