Why does a class get referenced instead of its subclass when a pointer to that subclass is passed to a function?

how to access superclass variables in subclass in java
call subclass method from superclass java
superclass reference to subclass object in java
why can't we assign parent class object to child class reference in java
polymorphism
base class reference derived class object in java
in a subclass re writing an instance method with the same name would be an example of
why child class reference cannot hold parent object