A parent class has only a constructor Parentint x. A child class has… | Inheritance question · AnyPrep