Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package lat.pbo;
- /**
- *
- * @author siswa
- */
- public class BuatMotor {
- public static void main (String []ar){
- MotorClass m1 = new MotorClass(1000);
- m1.maju();
- m1.akselerasi(200);
- package lat.pbo;
- /**
- *
- * @author siswa
- */
- public class BuatMotor {
- public static void main (String []ar){
- MotorClass m1 = new MotorClass(1000);
- m1.maju();
- m1.akselerasi(200);
- m1.belok(Arah.KANAN);
- m1.akselerasi(-50);
- m1.stop();
- System.out.println("Motor "+m1.mesin+"cc");
- System.out.println("Roda ada "+m1.roda);
- System.out.println("Kunci motor : "+m1.pinjamKunci());
- }
- } m1.belok(Arah.KANAN);
- m1.akselerasi(-50);
- m1.stop();
- System.out.println("Motor "+m1.mesin+"cc");
- System.out.println("Roda ada "+m1.roda);
- System.out.println("Kunci motor : "+m1.pinjamKunci());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement