Ruby - Class Methods and Variables
What will be the output of this Ruby code?
class Bird
@count = 5
def self.count
@count
end
end
class Parrot < Bird
@count = 10
end
puts Bird.count
puts Parrot.count