Advertisement
Guest User

Untitled

a guest
Apr 8th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ### ENTITY (SUPER CLASS inside JAR)
  2.  
  3. public class Entity {
  4.  
  5. void update() {
  6. }
  7.  
  8. void draw(Graphics bbg) {
  9. }
  10. }
  11.  
  12. ### BALLENTITY (SUBCLASS)
  13.  
  14.  
  15. public class BallEntity extends Entity {
  16.  
  17. @Override (Error: Method does not override method from its superclass)
  18. void update(){
  19.  
  20. }
  21.  
  22. @Override (Error: Method does not override method from its superclass)
  23. void draw(Graphics bbg){
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement