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
Step: 1
Answer The correct answer of the question is D Only 4 which is An overriden prote...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 StartedRecommended Textbook for
Physics Principles with Applications
Authors: Douglas C. Giancoli
7th edition
978-0321869111, 321625927, 9780321733627, 321869117, 9780321625922, 321733622, 978-0321762429
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App