Question
Q15. An abstract method ____. a. is any method in the abstract class b. cannot be inherited c. has no body d. is found in
Q15. An abstract method ____. a. is any method in the abstract class b. cannot be inherited c. has no body d. is found in a subclass and overrides methods in a superclass using the reserved word abstract Q16. An abstract class can define ____. a. only abstract methods b. only non-abstract methods c. abstract and non-abstract methods d. only abstract instance variables Q17. A subclass can directly access protected members of a superclass. a. true b. false Q18. If in the heading of a catch block you declare an exception using the class Exception, then that catch block can catch all types of exceptions because the class Exception is the superclass of all exception classes. a. true b. false
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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 Started