Files
  • Main.java
  • Main.class
  • Thought.class
  • Thought.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
public class Main extends Thought{
   //-----------------------------------------------------------------
   //  Prints a message. This method overrides the parentÕs version.
   //  It also invokes the parentÕs version explicitly using super.
   //-----------------------------------------------------------------
   public void main(){
      System.out.println ("Warning: Dates in calendar are closer " + "than they appear.Ó");
      System.out.println("well");
      super.message();
   }
}