moved to ex1 sub-directory
This commit is contained in:
parent
80b7f9e80d
commit
d926bb07c9
@ -1,4 +1,4 @@
|
|||||||
package lab8_builder;
|
package lab8_builder.ex1.lab8_builder;
|
||||||
|
|
||||||
public class Car {
|
public class Car {
|
||||||
private String power;
|
private String power;
|
@ -1,4 +1,4 @@
|
|||||||
package lab8_builder;
|
package lab8_builder.ex1.lab8_builder;
|
||||||
|
|
||||||
public abstract class CarBuilder {
|
public abstract class CarBuilder {
|
||||||
protected Car car;
|
protected Car car;
|
@ -1,4 +1,4 @@
|
|||||||
package lab8_builder;
|
package lab8_builder.ex1.lab8_builder;
|
||||||
|
|
||||||
public class CarFactory {
|
public class CarFactory {
|
||||||
private CarBuilder builder;
|
private CarBuilder builder;
|
@ -1,7 +1,7 @@
|
|||||||
package lab8_builder;
|
package lab8_builder.ex1.lab8_builder;
|
||||||
|
|
||||||
import lab8_builder.builders.BerlinBuilder;
|
import lab8_builder.ex1.lab8_builder.builders.BerlinBuilder;
|
||||||
import lab8_builder.builders.SportBuilder;
|
import lab8_builder.ex1.lab8_builder.builders.SportBuilder;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
@ -1,6 +1,6 @@
|
|||||||
package lab8_builder.builders;
|
package lab8_builder.ex1.lab8_builder.builders;
|
||||||
|
|
||||||
import lab8_builder.CarBuilder;
|
import lab8_builder.ex1.lab8_builder.CarBuilder;
|
||||||
|
|
||||||
public class BerlinBuilder extends CarBuilder {
|
public class BerlinBuilder extends CarBuilder {
|
||||||
@Override
|
@Override
|
@ -1,6 +1,6 @@
|
|||||||
package lab8_builder.builders;
|
package lab8_builder.ex1.lab8_builder.builders;
|
||||||
|
|
||||||
import lab8_builder.CarBuilder;
|
import lab8_builder.ex1.lab8_builder.CarBuilder;
|
||||||
|
|
||||||
public class SportBuilder extends CarBuilder {
|
public class SportBuilder extends CarBuilder {
|
||||||
@Override
|
@Override
|
Loading…
Reference in New Issue
Block a user