Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement