Demonstrate simple inner class which just extends an
existing class (Date) by overriding one method in it.
Fields Summary
Constructors Summary
Methods Summary
void
doWork()
Date d = new Date() {
public String toString() {
return "Today is " + super.toString();
}
};
System.out.println("My Date: " + d);
System.out.println("Std Date: " + new Date());