4. Supposed you would like to override a method with a default modifier in the superclass, which modifier/s can be used? (select all that apply) public private default protected None of the above 5. When a method is abstract in the superclass, its non-abstract subclass needs to override that method? a) True b) False 6. Can you override a method that has the keyword "abstract" in the method declaration? a) Yes b) No оооо

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 7RQ
icon
Related questions
Question
100%

Please answer all the questions.

4. Supposed you would like to override a method with a default modifier in the superclass, which
modifier/s can be used? (select all that apply)
public
private
default
protected
None of the above
5. When a method is abstract in the superclass, its non-abstract subclass needs to override that
method?
а) True
b) False
6. Can you override a method that has the keyword "abstract" in the method declaration?
а) Yes
b) No
Transcribed Image Text:4. Supposed you would like to override a method with a default modifier in the superclass, which modifier/s can be used? (select all that apply) public private default protected None of the above 5. When a method is abstract in the superclass, its non-abstract subclass needs to override that method? а) True b) False 6. Can you override a method that has the keyword "abstract" in the method declaration? а) Yes b) No
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT