-1

I extended two classes (TimerTask and Jframe) to my class but it shows me an error, is there any way to correct the error? I need them to set a timer in my GUI classes.

Chrisvin Jem
  • 3,940
  • 1
  • 8
  • 24
Dhmia
  • 1
  • 1

1 Answers1

0

Java does not support multiple inheritance. You cannot extend two class in Java. However, you can implement multiple interfaces but not extend multiple class. Try to rethink your design to handle it in a different way.

mithz
  • 24
  • 4