Answer : Compilation fails bcoz The implied super() call Bottom2's constructor cannot be satisfied bcoz there isn't no arg constructor in Top. A default no arg constructor is generated if claas has no constructtor.
Can you please explain me this?
Answer : 9 Minor constructor makes explicit call to Ubers 1 arg constructor which makes an expilict call to this() which increments y,this returns to the 1 arg constructor which multiplies y * 2 andd then return to Minor constructor which add 3 to y.
3. What is covariant return can someone explain with example?