Can a class extend an interface?
Answer:
No. Only classes are extended, and a class may extend only one class.
End of the Chapter
You have reached the end of the chapter. You may wish to extend your knowledge by examining the following.
- What an interface is.
- How a class implements an interface.
- Implementing several interfaces.
- An example of a constant in an interface.
- Using an interface as a type of a reference variable.
- Use of a type cast with a reference variable.
- Public interfaces.
- Extending an interface.