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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!