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 

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

1 Expert Approved Answer
Step: 1 Unlock

Answer The correct answer of the question is D Only 4 which is An overriden prote... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!