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
upcasting downcasting in Diego's version looks like. It seems to be what Basia would describe as upcasting.
- upcasting example
Object object = new Tiger();
- upcasting example as well And then Diego describes it in contradictory way: https://codegym.cc/quests/lectures/pl.questsyntax.level10.lecture06
byte a = 115; int b = a;
- and this is how
Integer i = 123; Object o = i;