How i use getChild method in dog class