Search:

Type: Posts; User: spangledhoagies

Search: Search took 0.11 seconds.

  1. Re: Need help with creating a counter. conflicting constructors?...

    Car.java:44: error: constructor Car() is already defined in class Car
    public Car()
    ^
    1 error

    ----jGRASP

    --- Update ---

    damn haha... was staring me right in the face.
  2. Need help with creating a counter. conflicting constructors?...

    So i posted this homework problem awhile back but my professor just decided to let us know that we must use a counter. and i am having trouble writing a constructor that doesnt conflict with another....
  3. [SOLVED] Re: Desperate help needed with class and methods

    got it. thanks guys for helping. really appreciate it.
  4. [SOLVED] Re: Desperate help needed with class and methods

    ok i added the constructors now i am stuck at the getNumber. this is what i have now:


    public class Car
    {
    private String brand;
    private int year;
    private double price;
    private int Number = 4;
  5. [SOLVED] Re: Desperate help needed with class and methods

    yes i know these things. i guess what is confusing me is the fact that car1 and car4 have no field initialization. i will begin to try to write a full code once i am on my own laptop and post it...
  6. [SOLVED] Re: Desperate help needed with class and methods

    public class Car
    {
    private String brand;
    private int year;
    private double price;



    }
  7. [SOLVED] Re: Desperate help needed with class and methods

    Sorry about that, and thank you for helping me to clean up my post. Basically, my confusion is where to start. I created the Car class, and gave price, brand, and year their separate private classes,...
  8. [SOLVED] Desperate help needed with class and methods

    ok so i am looking at my homework for class and i am horribly confused lol. i would greatly appreciate it if someone could help me out with this with a good explanation.

    so the instructions are
    ...
Results 1 to 8 of 8