title: Print toString from different classes
body: <p>I've been trying to figure this out for a while now, I've searched through various questions but I don't think I'm geting any closer.</p>
  
  <p>I have a superclass Vehicle that gives various details of a vehicle. I then have my Car class which inherits from Vehicle.</p>
  
  <p>I am trying to print the toString from my Car class, which overides the Vehicle class.</p>
  
  <p>Basically I want to print out the information about each car.</p>
  
  <p>Here is my main</p>
  
  <pre><code>    public static void main(String []args)
  
      {
  
          Car Ford = new Car(Red, 4, true);
  
          //Ford = Ford.;   Tried various things here to no avail, kept getting nullfalse in output
  
          Car Honda = new Car(Blue, 4, false);
  
  
          System.out.println(Ford.vehicleDetails);
  
          System.out.println("Honda");
  
      }
  
  }
  </code></pre>
  
  <p>This is my Vehicle class</p>
  
  <pre><code>public class Vehicle
  
  {
  
  // Variables
  
  private String vehicleColour;
  
  private int numberOfWheels;
  
  String vehicleDetails;
  
  // Constructor
  
  public Vehicle(String vehicleColour, int numberOfWheels)
  
  {
  
  }
  
  // Getters
  
  public String getVehicleColour()
  
  {
      return vehicleColour;
  }
  
  public int getNumberOfWheels()
  
  {
      return numberOfWheels;
  }
  
  
  
  // Setters
  
  public void setVehicleColour(String vehicleColour)
  
  {
      this.vehicleColour = vehicleColour;
  }
  
  
  public void setNumberOfWheels(int numberOfWheels)
  
  {
      this.numberOfWheels = numberOfWheels;
  }
  
  
  // Constructor
  
  public Vehicle ()
  
  {
  
  }
  
  
  // toString method super
  
  public String toString() {
  
      String vehicleDetails = (getVehicleColour() + "" + getNumberOfWheels());
  
      return vehicleDetails;
  
  }
  
  }
  </code></pre>
  
  <p>And this is my Car class</p>
  
  <pre><code>    public class Car extends Vehicle
  
  {
  
      // Variables
  
      private boolean convertible;
  
      Car vehicleDetails;
  
      // Getter
  
      public boolean getConvertible()
  
      {
          return convertible;
      }
  
      // Setter
  
      public void setConvertible(boolean convertible)
  
      {
          this.convertible = convertible;
      }
  
      // Constructor
  
      public Car(String vehicleColour, int numberOfWheels, boolean convertible) {
  
  
      }
  
  
          // toString method override
  
          @Override
          public String toString() {
  
          return super.toString() + convertible;
  
          }
  
      }
  </code></pre>
  
  <p>I want my output to be something like "The Ford is <strong>red</strong>, has <strong>4</strong> wheels and <strong>is a convertible</strong>", with bold text coming from Vehicle and Car classes respectively.</p>
  
  <p>How do I get the bold text to show up in output? Right now I just get default values such as null, 0 and false.</p>
  
  <p>I appreciate any input, I know I am probably doing something really stupid that is really obvious but I just can't see it.</p>
  
  <p>Thanks.</p>