Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

regarding anonymous inner class

  Asked By: Annie    Date: Sep 05    Category: Java    Views: 768

can i create a anonymous class which can implement two interfaces
i mean...
we can create classes like this
Object objref= new MyInterface1(){};

can we create something like this
Object objref= new (MyInterface1 extends MyInterface2) () {};
instead of
class MyClass implements MyInterface1,MyInterface2{};



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on regarding anonymous inner class Or get search suggestion and latest updates.