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
Get step-by-step solutions from verified subject matter experts
