title: Basic Java Program that uses Inheritance is giving me a few puzzling errors
body: <p>for the past few weeks, I have been working on a program that uses inheritance, and encountered a few bugs along the way. First of all, it is meant to inherit at least twice and so I decided to create a simple car/Toyota class. Here is my code for the base class:</p>
  
  <pre><code>    package *********;
  
  import java.util.Scanner;
  
  class Toyota
  {
     public String make; // The make of the vehicle
  
     public int numberOfDoors; // The number of doors of the vehicle
  
     public boolean startCar; // Is true if the car has been started
  
     public int speed; // The speed of the vehicle
  
     static Scanner scnr = new Scanner(System.in);
  
     public Toyota() //Default constructor for initializing default values
     {
         make = "Toyota";
         numberOfDoors = 4;
         startCar = false;
         speed = 45;
     }
  
     //Parent class methods for user operations
     {
     if (startCar)
                                                     { 
     startCar = false;
     System.out.println("Car is parked and not started");
     System.exit(0);
     }
     else
     {
     startCar = true;
     System.out.println("Car is started");
     }
     }
  
     public void status() // Method for displaying the status
     {
         System.out.println("Make: "+make + ", number of doors "+
         numberOfDoors + ", speed " + speed);  
     }
       public void increaseSpeed() //Method for setting the channel
     {   
         System.out.println("Keep your foot on the gas.");
     speed = scnr.nextInt();
     System.out.println("The speed has changed to "+speed);
     }
  }
  </code></pre>
  
  <p>Here is the error(s) I am getting:</p>
  
  <blockquote>
    <p>No applet or method.</p>
  </blockquote>
  
  <p>Here is the other class that extends the first one:</p>
  
  <pre><code>    package ********;
  
  import java.util.Scanner;
  
  public class ToyotaCorolla extends Toyota
  {
     public static void main(String[] args)
     {
        // int ch = 0;
        int sp = 0;
         //MyTelevision TV = new MyTelevision(); //Creating object for MyTelevision class
         ToyotaCorolla LE = new ToyotaCorolla();
         //TV.power(); //Calling super class methods with child class object
         LE.start();
             //TV.status();
             LE.status();
  
     while (sp!=4) //Switch case for user choice
     {  
     System.out.println("Start the car and put your foot on the gas...");
     System.out.println("1; put the foot on the gas...");
     System.out.println("2; increase the speed...");
     System.out.println("3; slow down!");
     System.out.println("4; park the vehicle and stop.");
     sp = scnr.nextInt();
  
             switch (sp)
             {
     case 1:   
             LE.buildSpeed(); //Calling super class methods with child class object
     break;
     case 2: LE.increaseSpeed();//Calling super class methods with child class object
     break;
     case 3: LE.decreaseSpeed();//Calling super class methods with child class object
     break;
     case 4: LE.start(); //Calling super class methods with child class object
     default: System.out.println("Please input a valid option.");
     break;
     }
  
         }
  
     }
     }
  </code></pre>
  
  <p>And the errors...</p>
  
  <blockquote>
    <p>Every time "LE" is referenced, it gives me an error, even though I declared it in the first/parent class. I even changed it to lowercase just because and obviously did not make a difference. Any suggestions, please?</p>
  </blockquote>