Skip to content

Instantly share code, notes, and snippets.

@panwarab
Created January 17, 2017 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panwarab/1ed48730c8b4854cd862eada72403dfa to your computer and use it in GitHub Desktop.
Save panwarab/1ed48730c8b4854cd862eada72403dfa to your computer and use it in GitHub Desktop.
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