Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public abstract class Foo{
  2.  
  3. //plus constructor and other stuff.
  4.  
  5. public abstract void differentTypeOfImplementation();
  6.  
  7. public void doSomething(Foo foo){
  8. //do something with the generic Foo object passed
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement