N
Navya Amerineni
hi all,
i am very new to Ruby.
I stared writing very basic programs
The below is one of my program
class Song
def initialize(name, artist, duration)
@name=name
@artist=artist
@duration=duration
end
def myclass_function
puts "this is my first class"
end
end
class1=Song.new("Navya","Teja",540)
class1.myclass_function
class1.inspect
i am not getting any any output for the statement
class1.inspect
what might be possible correction
please help
Navya.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/
i am very new to Ruby.
I stared writing very basic programs
The below is one of my program
class Song
def initialize(name, artist, duration)
@name=name
@artist=artist
@duration=duration
end
def myclass_function
puts "this is my first class"
end
end
class1=Song.new("Navya","Teja",540)
class1.myclass_function
class1.inspect
i am not getting any any output for the statement
class1.inspect
what might be possible correction
please help
Navya.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/