Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Java “extending” an object

By: a guest on Feb 21st, 2012  |  syntax: None  |  size: 0.29 KB  |  views: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. StandardClass stdClass = (StandardClass)request.getAttribute(ATTR);
  2.        
  3. ExtendedClass extends StandardClass implements Observer { ... }
  4.        
  5. Observable obs = (Observable) request.getAttribute(ATTR);
  6.        
  7. request.getAttribute(ATTR);
  8.        
  9. Observer observer = (Observer) request.getAttribute(ATTR);