In Intellij IDEA, the package is compiled successfully, but it does not start - and I do not see compiled .class files either (and the IDE does not find the main class PersonTest.class, because it simply does not exist!) Neither the specified path, nor the search disk. Here is the main class:

package abstractClasses; public class PersonTest { public static void main(String[] args) { Person[] people = new Person[2]; // fill the people array with Student and Employee objects people[0] = new Employee("Harry Hacker", 50000, 1989, 10, 1); people[1] = new Student("Maria Morris", "computer science"); // print out names and descriptions of all Person objects for (Person p : people) System.out.println(p.getName() + ", " + p.getDescription()); } } 
  • And how is the project set up in IDEA? - Mikhail Vaysman
  • Are the settings in the File / Project Structure? - Alex
  • Yes, as well as the type of project. - Mikhail Vaysman
  • project type Application; - Alex
  • Project structure / Project: Project name: CoreJava Project SDK: 1.8 Project language level: 8 Project compiler output: D: \ DownLoadFirefox \ corejava \ corejava \ v1ch05 \ abstractClasses - Alex

0