Consider the below constructors. What would the output of Ch…

Consider the below constructors. What would the output of Child c = new Child() be? // in Parent.javapublic class Parent { public Parent() { System.out.println(“Parent constructor”); }}// in Child.javapublic class Child extends Parent { public Child() { System.out.println(“Child constructor”); }}

Write the class header and the variable declarations (a clas…

Write the class header and the variable declarations (a class without constructors or methods, with correct syntax) for Racecar (a concrete class, child of Car). The class has the following variables: constructor (String, represents the name of the team that the racecar belongs to) points (int, represents the total number of points the car has accumulated over its races)