forked from giakinh0823/java-programming-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTester.java
More file actions
27 lines (23 loc) · 636 Bytes
/
Copy pathTester.java
File metadata and controls
27 lines (23 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Workshop3.CarManager;
/**
*
* @author giaki
*/
public class Tester {
public static void main(String[] args) {
Car c = new Car();
c.pressStartButton();
c.pressAcceleratorButton();
c.output();
Car c2 = new Car("red", 100, true, true);
c2.pressAcceleratorButton();
c2.setColour("black");
System.out.println("Colour of c3:" + c2.getColour());
c2.output();
}
}