I was playing with code, see the comment besides the code, my question is:
Is og of child type or parent type?
public static void main(String[] args)
{
inherit og = new child();
og.play();
( (child)og).kick((child)og); //kick is a function in child class wi=hich accepts an object of the child class as parameter
// gives an error if we remove explicit conversion
System.out.println(og instanceof child); //true
System.out.println(og instanceof inherit); //true
System.out.println(og.getClass().getSimpleName()); //child
}