Question: Please answer the following! Will give instant positive feedback! Consider class Foo with the following definitions: public class Foo { public int a; private int
Please answer the following! Will give instant positive feedback!


Consider class Foo with the following definitions: public class Foo { public int a; private int b; protected int c; public void doThis) { [... method code here ...] } which of the following are NOT directly available (i.e., available by name) to a child class of Foo? You can assume the child class is in the same package as Foo. O do This All instance variables and methods defined in Foo as given above are directly available. Consider class Bar with the following definitions: public class Bar { private int a; protected int b; private void doThat() { [... method code here ...] } private int undoThat) { [... method code here ...] } } which of the following ARE directly available (i.e., available by name) to a child class of Bar ? You can assume the child class is in the same package as Bar None of the instance variables and methods defined in Bar as given above are directly available. do That undoThat 0 b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
