Answered step by step
Verified Expert Solution
Question
1 Approved Answer
s New Mode Delay Ques Not y the output of following program. Note that fun() is public in base and private in derived. 8 9.
s New Mode Delay Ques Not y the output of following program. Note that fun() is public in base and private in derived. 8 9. answ 15 16 Marki 1.50 class Base { public void } foo() { System.out.println("Base" ); } PFIE Finish att class Time left Derived extends Base { private void foo() { System.out.printin( "Derived" ); } public class Main public static void main(String args[]) { Base b = new Derived(); b. Foo(); 3 Select one: a. compiler error b. derived c. it will print nothing id, runtime error e. base Type here to search ER
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started