conorH22/bike-rental

View on GitHub
src/main/java/com/csharp/bikerental/persistence/model/TwoWheel/TwoWheelBuilder.java

Summary

Maintainability
A
0 mins
Test Coverage
package com.csharp.bikerental.persistence.model.TwoWheel;

public class TwoWheelBuilder {

    public   TwoWheel buildBike() {
        TwoWheel biker = new Bike();
        return biker;
    }

    public TwoWheel buildScooter(){
        TwoWheel scooter = new Scooter();
        return scooter;
    }

       public TwoWheel buildEScooter(){
        TwoWheel escooter = new EScooter();
        return escooter;
    }

    public TwoWheel buildEBike(){
        TwoWheel ebike = new EBike();
        return ebike;
    }

}