groups

name language licence
Boolean isLetterOrDigit Method Java Other
String getPassword Accessor Method Java Other
DerbyCar Java Other



language: Java
licence: Other

DerbyCar

options: view full snippetsend to code collector

I can show you the ideas and problems more in detail after class or before, or later online.


// Your second constructor
public DerbyCar(String DriverName, double Value) {
	this (DriverName,  "Car 10", Value);  // Your idea is you want this.description, more on that below
  }

Since there are overloaded constructors you need to have two constructors (which you do).  The idea
behind overloaded constructors is that the arguments of the new statement like:

DerbyCar car4 = new DerbyCar("Tester John", 0.50);  // Passing two arguments 

Must match the parameters of the constructor (below) when you want to create a new object:
	
(Continues...)