Monday, April 23, 2018

Can a class implements multiple interface ?


  1. interface MultipleInterface {}
  2. interface MultipleInterface1 {}
  3. interface MultipleInterfac2 {}
  4. public class UserMain implements MultipleInterface, MultipleInterface1, MultipleInterfac2 {
  5. // code here
  6. }
Yes ! we can implements multiple interface in a class.

No comments:

Post a Comment

Blueprint for self-improvement

To learn faster: Make the process fun To understand yourself : Write To understand the world better : Read To build deeper connection : Lis...