Preview:
public class Wrangler extends Car {

  boolean carDoors = true; 

public void takeOffDoors() {
  carDoors = false;
  System.out.println("Doors are taken off");

}

public void putBackDoors() {
  carDoors = true;
  System.out.println("Doors are back");

}

public String returnCarModel() {
  return "car model is Wrangler";

}
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter