I can't understand why is the data type of an Object reference taken as its class type?
Afaik ,
Class_name Obj_name = new Class_name( ) ;
Here, Obj_name holds the reference to the object of Class , Class_name, i.e; just a number ( address
)
so, why is there a need of making the type of Obj_name as its class type ??