fahimkamal63

7.(b)

Jun 29th, 2019
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. /**
  2.  * 7.(b)
  3.  * Date : 29.06.19
  4.  */
  5. package Batch10mid;
  6.  
  7. class Bike{
  8.     final void run(){ System.out.println("Running..."); }
  9. }
  10. public class Honda extends Bike {
  11.     public static void main(String[] args){
  12.         new Honda().run();
  13.     }    
  14. }
Advertisement
Add Comment
Please, Sign In to add comment