Question: Java question: Select whether each of the following is true for abstract classes only, interfaces only, both, or neither. can be used as the declared
Java question:
Select whether each of the following is true for abstract classes only, interfaces only, both, or neither.
can be used as the declared type of an object
a. interfaces only b. neither c.abstract classes only d.both abstract classes and interfaces
can be used as the actual (runtime) type of an object
a. interfaces only b. neither c. abstract classes only d. both abstract classes and interfaces
can have a constructor
a. interfaces only b. neither c. abstract classes only d. both abstract classes and interfaces
can have abstract methods
a. interfaces only b. neither c. abstract classes only d. both abstract classes and interfaces
can contain private variable
a. interfaces only b. neither c.abstract classes only d.both abstract classes and interfaces
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
