| 
 | 
 
Has a base class class T { 
 void sleep () {System.out.println ("aaa");} 
} 
Has an interface interface I { 
 
} 
There is a class class Test extends T 
{ 
  void sleep () () /// Override the sleep method of the base class 
} 
 
What I want to do now is that if Test wants to override the sleep method of the base class, then I must implement the I interface. If I do n’t implement it, I will report an error. interface |   
 
 
 
 |