1.

What Is The Difference Between Abstract Class And Interface?

Answer»
  • An Interface contains METHODS with only signatures and no body.
  • An Abstract class contains method signatures with or without body.
  • A class can implement several interfaces inside it.A class can inherit from a single Abstract class.
  • By default, interface has public ACCESS MODIFIERS.It cannot use any other access modifiers. An Abstract class can have any access modifiers.
  • No variables and constants can be defined in a class.An abstract class can have variables and constants.



Discussion

No Comment Found