No, an anonymous inner class does not have to extend another class to implement an interface

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question

No, an anonymous inner class does not have to extend another class to implement an interface.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer