Advertisement
Guest User

Untitled

a guest
Jul 17th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. Some Main class{
  2.  public void main(){
  3.  
  4. MyInterface  mi = new MyClass();
  5. mi.myMethod();
  6.  
  7. }
  8. }
  9.  
  10.  
  11.  
  12.  
  13. class MyClass implements MyClassInterface {
  14.  
  15.  void myMehtod(){
  16.     system.out.println("hello");
  17. }
  18.  
  19. }
  20.  
  21.  
  22. MyClassInterface interface {
  23.  void myMethod();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement