I have recently started with android devolopment in Java after learning the basics and I noticed a new way that objects were initialised. For example:
TextView t = (TextView) findViewById(R.id.textbox);
Here I would like to know what (TextView) means and why can't we initialise a object by a static method or the new keyword. Thank you!
Edit:
I would also like to know what happens when a superclass object is casted on a base class object (What propities are inherited)