• Post Reply Bookmark Topic Watch Topic
  • New Topic

overriding in interface  RSS feed

 
Gajendra Kangokar
Ranch Hand
Posts: 94
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all

which interfaces method1() is class C overriding?
Thank you
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both. If one of them wasn't considered to be implemented then that wouldn't compile because there would be a method without a body in a concrete class.

(Technically it's implementing, not overriding.)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!