Learn more in the app.
View in app
Class Inheritance Program Output - Java Quiz Question
What will be the output of the following program?
Compilation Error at LINE Y - since class B is not extending class A
i = 4
i = 10
Compilation Error at LINE X - since the member variable i is not accessible in b's object