Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main (String[] args) {
- /*Car c=new Car();
- c.setModel("M1");
- c.setColor("Red");
- c.setPrice(10000);
- c.setSpeed(1500);
- c.showCar();*/
- Bicycle b1=new Bicycle();
- Bicycle b2=new Bicycle("M", 10000);
- Bicycle b3=new Bicycle("M3", 40, 15000, "White");
- System.out.println("\nFeature of b1\n\n");
- b1.showBicycle();
- System.out.println("\nFeature of b2 \n\n");
- b2.showBicycle();
- System.out.println("\nFeature of b3 \n\n");
- b3.showBicycle();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement