You got it backwards Dog::foo("Animal") should be Animal::foo("Dog")
In reply to Re^2: ::'s role in strings by ikegami in thread ::'s role in strings by eff_i_g