0
Ruby class - Fix and debug
Correct the only error to make this code functioning: class Counter @@count = 0 def initialize @@count += 1 end def self.getCount @@count end end c1 = Counter.new puts c1.getCount
2 Respostas
0
Is this by any chance for homework or for something you were tasked to work on?
0
For homework