Skip to main content
fixed typo
Source Link
p.s.w.g
  • 4.2k
  • 4
  • 31
  • 40

Abstract classes can have abstract methods.

Interfaces can only have bastractabstract methods.

method1() and method2() in your example are abstract methods.

Abstract classes can have abstract methods.

Interfaces can only have bastract methods.

method1() and method2() in your example are abstract methods.

Abstract classes can have abstract methods.

Interfaces can only have abstract methods.

method1() and method2() in your example are abstract methods.

Source Link
Tulains Córdova
  • 39.6k
  • 13
  • 102
  • 157

Abstract classes can have abstract methods.

Interfaces can only have bastract methods.

method1() and method2() in your example are abstract methods.