class declaration syntax error

J

junkone

Class SymbolObject

def initialize(symb)
@symbol=symb
@name=@exchange=@news=@summary=@sector=@industry=@category=""
end
end


I am not sure what is wrong. i get a syntax error.
 
L

Logan Capaldo

Class SymbolObject

def initialize(symb)
@symbol=symb
@name=@exchange=@news=@summary=@sector=@industry=@category=""
end
end


I am not sure what is wrong. i get a syntax error.

class should be lowercase. class SymbolObject not Class SymbolObject
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,268
Latest member
AshliMacin

Latest Threads

Top