After evaluating the program code given bellow answer the questions at the end.
ID: 3626981 • Letter: A
Question
After evaluating the program code given bellow answer the questions at the end.
--------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------
Question 1) what fields and methods are not inherited?
Question 2) what is the output of the following code sequence?
B b1 = new B( );
Question 3) what is the output of the following code sequence?
C c1 = new C( );
Explanation / Answer
a) private int number and void foo1 method
not inhertied.
b)
A() called
B() called
// first base constructor called.
c) A() called
B() called
C() called
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.