Question: Note: Assume required classes and interfaces are imported for all questions. (4 points) Q1. Circle True or False. ethod (a) A template method in the

Note: Assume required classes and interfaces are imported for all questions. (4 points) Q1. Circle True or False. ethod (a) A template method in the template method pattern is always a concrete m True False no-parameter (b) When super ) is called in a sub class, it will be an immediate compilation error if a constructor is not available in the immediate super class. True False (c) Although a class has concrete methods only, it can be still defined as an abstract class. True False Consider the following method and inheritance hierarchy to answer the question (d). The getsalary) is a protected method. Faculty and Staff are in different packages. Employee protected double get8alaryo Faculty Staff (d) The following method of the Faculty c lass compiles. True False void somemethod (Staff staff) stem.out.printin(staff.getsalary()):1 Sy
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
