"public static class CheapCar { private void printlnDesire()" "public static class GeoMetro extends CheapCar { public void printlnDesire()" I thought that private methods can not be inherited. Why it is written this way?