Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. abstract class Bike{
  2. abstract void run(); //declaration
  3. void stop()
  4. {
  5. //any logic // fallback , matlab kuch nai hai to inhe use karlo
  6. }
  7. void start(){
  8. //any logic
  9. }
  10. }
  11.  
  12. abstract class Honda extends Bike{
  13.  
  14. @Override
  15. void run() {
  16. //any logic
  17. }
  18.  
  19. abstract void hondamet();
  20. }
  21.  
  22. class hayabu extends Honda{
  23.  
  24. @Override
  25. void hondamet() {
  26.  
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement