Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    17
    Views
    964

    [SOLVED] Re: BlueJ inheritance Issue. Please Help.

    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...
  2. Replies
    17
    Views
    964

    [SOLVED] Re: BlueJ inheritance Issue. Please Help.

    Please copy the full text of the error message and paste it here. It has important info about the error.
  3. Replies
    17
    Views
    964

    [SOLVED] Re: BlueJ inheritance Issue. Please Help.

    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...
  4. Replies
    17
    Views
    964

    [SOLVED] Re: BlueJ inheritance Issue. Please Help.

    Some examples from the Gadget code:

    public class Gadget
    {
    public String model;
    public double price;
    public int weight;
    public String size;

    public...
  5. Replies
    17
    Views
    964

    [SOLVED] Re: BlueJ inheritance Issue. Please Help.

    See my previous post about constructors vs methods.
  6. Replies
    17
    Views
    964

    [SOLVED] Re: BlueJ inheritance Issue. Please Help.

    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...
Results 1 to 6 of 6