Which of the following are valid statements about interfaces?
about interfaces?
Select one or more.
A) Interface cannot contan vanables.
B)All methods that are declared in an interface are by default public and abstract.
C)Interface can contain only one static method with definition provided
D)Interface can contain any number of default methods which needs to be provided with implementation
Answers
Answered by
0
"Abstract class"
Explanation:
ITERFACES:
- Interface is a process of abstraction.
- It can be used in so many languages, to create a various type of programs to develop coding.
- In the program of c, c++, java etc.
- The program that are created by variable methods with default interface and abstract.
- Hence, All methods that are declared in an interface are by abstract.
Similar questions