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.
Type: Posts; User: spangledhoagies
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.
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....
got it. thanks guys for helping. really appreciate it.
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;
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...
public class Car
{
private String brand;
private int year;
private double price;
}
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,...
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
...