Can an anonymous class be declared as implementing an interface andextending a class

An anonymous class may implement an interface or extend a superclass, but may not bedeclared to doboth.

Showing Answers 1 - 1 of 1 Answers

An anonymous class simultaneously cannot be declared as implementing an interface and extending a class but it may implement an interface or extend a superclass.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions