Abstract class instead of interface or interface instead of abstract class

  • Note

    1. Can we use abstract class instead of interface ?

    Yes , possible

    But abstract class does not allow multiple inheritance

    can we use interface instead abstract class?

    Yes, possible

    but interface does not allow shared properties and shared logics (methods)