Question: Which are true statements about interfaces and abstract classes? Each correct answer represents a complete solution. Choose all that apply. A Both abstract classes and
Which are true statements about interfaces and abstract classes?
Each correct answer represents a complete solution. Choose all that apply.
A Both abstract classes and interfaces can have abstract methods.
B Both abstract classes and interfaces can have public constructors.
C Interfaces can only extend other interfaces, while abstract classes can extend both abstract and concrete classes.
D Unlike abstract classes, interfaces can be marked final.
E Abstract classes offer support for single inheritance, while interfaces offer support for multiple inheritance.
F All methods in abstract classes are implicitly public, while interfaces can
use various access modifiers for their methods and variables, including
private in some cases.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
