Java Super Constructor error?

in my program, i have three programs that inherit the properties of a superclass "Inventory Object," but for some reason, the constructors of these subclasses won't run because of the following error: "Implicit super constructor InventoryObject() is undefined. Must explicitly invoke another constructor.

The declaration for the subclass constructor: public ReceivedInventory(String vendor, double itemCost...etc etc) { code }

The declaration for the super constructor: public InventoryObject(String vendor, double itemCost...etc etc) { code }

The difference between the two constructors is that the subclass constructor has all the superclass constructors + receipt date, days aged, etc etc. Can anyone help me?

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 Q2A.ES - All rights reserved.