So, I've read three lessons about it and I am very confused. Why? Because it seems that in 1 lesson with Diego topic is described contradictory to 2 lessons with Basia. Which way is good? Lessons with Basia describes it in one way:
Object object = new Tiger();
- upcasting example
byte a = 115;
int b = a;
- upcasting example as well And then Diego describes it in contradictory way:
Integer i = 123;
Object o = i;
- and this is how upcasting downcasting in Diego's version looks like. It seems to be what Basia would describe as upcasting.