Created
January 17, 2017 11:04
-
-
Save panwarab/1ed48730c8b4854cd862eada72403dfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Bike{ | |
abstract void run(); //declaration | |
void stop() | |
{ | |
//any logic // fallback , matlab kuch nai hai to inhe use karlo | |
} | |
void start(){ | |
//any logic | |
} | |
} | |
abstract class Honda extends Bike{ | |
@Override | |
void run() { | |
//any logic | |
} | |
abstract void hondamet(); | |
} | |
class hayabu extends Honda{ | |
@Override | |
void hondamet() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment