There's probably some obvious reason but I just can't see it. It gives a null pointer exception and won't verify. The 6th requirement where it says to display things doesn't pass.
package com.codegym.task.task14.task1409;
/*
Bridges
*/
public class Solution {
public void main(String[] args) {
println(new WaterBridge());
println(new SuspensionBridge());
}
public static void println(Bridge bridge) {
int c = bridge.getCarsCount();
System.out.println(c);
}
}