title: JavaFX application class must extend javafx.application.Application --> Getting this error eventhough main method is there
body: <p>JavaFX application class must extend javafx.application.Application --> Getting this error eventhough main method is there.</p>
  
  <p>Please refer to my sample code:</p>
  
  <pre><code>package testpkg;
  
  class Overloading1 {
  public void disp(char c) {
      System.out.println(c);
  }
  
  public void disp(char c, int num) {
      System.out.println(c + " " + num);
  }
  
  }
  
  class Overloading2 extends Overloading1 {
  
  public static void main(String args[]) {
      Overloading2 obj = new Overloading2();
      obj.disp('a');
      obj.disp('a', 10);
  }
  </code></pre>
  
  <p>}</p>