-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCar.java
More file actions
48 lines (37 loc) · 1.03 KB
/
Copy pathCar.java
File metadata and controls
48 lines (37 loc) · 1.03 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package BuilderDesign;
public class Car implements Builder{
private Product product;
Car (String name){
this.product= new Product(name);
}
@Override
public void startUpOperations() {
// TODO Auto-generated method stub
System.out.println("Car has started its operation");
}
@Override
public void buildBody() {
// TODO Auto-generated method stub
System.out.println("The process of building the car hass been started");
}
@Override
public void insertWheels() {
// TODO Auto-generated method stub
System.out.println("The wheels are inserted in the car");
}
@Override
public void addHeadlights() {
// TODO Auto-generated method stub
System.out.println("Headlights of the car has also been installed");
}
@Override
public void endOperations() {
// TODO Auto-generated method stub
System.out.println("All of the operations of the car has finished");
}
@Override
public Product getVehicle() {
// TODO Auto-generated method stub
return product;
}
}