Question: Which of the following is true about inheritance in Java? 1) An overriden public method can change only to protected in the subclass 2)
Which of the following is true about inheritance in Java? 1) An overriden public method can change only to protected in the subclass 2) An overriden protected method can be only protected in the subclass 3) An overriden protected method can be protected or change to default in the subclass 4) An overriden protected method can be protected or change to public in the subclass 1 and 3 only 1 only 3 only 4
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
Answer The correct answer of the question is D Only 4 which is An overriden prote... View full answer
Get step-by-step solutions from verified subject matter experts
