Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote