Guest User

Untitled

a guest
Jul 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. x = user input value
  2. Foo foo = Null
  3. if (x > 10) {
  4. foo = new SUB_CLASS_OF_FOO1();
  5. } else {
  6. foo = new SUB_CLASS_OF_FOO2();
  7. }
  8.  
  9. foo.heyhey()
Add Comment
Please, Sign In to add comment