The error messages should have the source line and line number for where the error happens.
These two line describe the problem:
The constructor takes the 4 arguments listed in the message but the...
Type: Posts; User: Norm
The error messages should have the source line and line number for where the error happens.
These two line describe the problem:
The constructor takes the 4 arguments listed in the message but the...
Please copy the full text of the error message and paste it here. It has important info about the error.
From post#2:
Constructors do not have a return type. void is a return type
Also constructors have the same name as the class.
public void Gadget(String themodel, double theprice, int...
Some examples from the Gadget code:
public class Gadget
{
public String model;
public double price;
public int weight;
public String size;
public...
See my previous post about constructors vs methods.
Please copy the full text of the error messages and paste it here. Not as images.
Check that the code is defining a constructor vs a method. Constructors do not have a return type.
Also...