Code doesn't give any output
My code compiles and runs without any errors, but it doesn't give any output. I am expecting output from class BMW. Maybe someone could help me to identify what is missing? Code: package cartester; public class CarTester { public static void main(String[] args){ abstract class Car{ abstract void Manufacturer(); abstract void Model(); abstract void Year(); void MyCar(){ System.out.println("My car:"); } } class BMW extends Car{ @Override void Manufacturer(){ System.out.println("Manufacturer: BMW"); } @Override void Model(){ System.out.println("Model: 530d"); } @Override void Year(){ System.out.println("Year: 2002"); } } class Audi extends Car{ @Override void Manufacturer(){ System.out.println("Manufacturer: Audi"); } @Override void Model(){ System.out.println("Model: A6"); } @Override void Year(){ System.out.println("Year: 1998"); } } class TestBMW{ public void main(String[] args){ Car MyBMW = new BMW(); MyBMW.Manufacturer(); MyBMW.Model(); MyBMW.Year(); } } } }