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: https://codegym.cc/quests/lectures/pl.questcore.level04.lecture03 https://codegym.cc/quests/lectures/pl.questsyntax.level10.lecture03
Object object = new Tiger();
- upcasting example
byte a = 115;
int b = a;
- upcasting example as well And then Diego describes it in contradictory way: https://codegym.cc/quests/lectures/pl.questsyntax.level10.lecture06
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.