ABSTRACT AND INTERFACES Flashcards
1
Q
Interface
A
all methods in interface are abstract
2
Q
True or false
Classes CANNOT implement more than one interface
A
False
3
Q
what are the access level of fields in interface
A
public, static and final
4
Q
interfaces do not have constructors ( abstract classes do as these constructors are usually used in subclasses)
A
Abstract classes can have constructors, but they cannot be instantiated directly. The constructors are used when a concrete subclass is created.
5
Q
Interface with single abstract method is called
A
Functional interface
6
Q
A