Question: Question 1 (Mandatory) (1 point) Under the rules of inheritance, public methods in the superclass are O public in the subclass O protected in the



![Java code? int[] array = new int[10]: for (int i = array.length;](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3a30c3fc15_01966f3a30bc5627.jpg)

Question 1 (Mandatory) (1 point) Under the rules of inheritance, public methods in the superclass are O public in the subclass O protected in the subclass o accessible in the subclass o accessible through polymorphism only Question 2 (Mandatory) (1 point) What is true of the following Java code? int[] array = new int[10]: for (int i = array.length; i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
