Programming: When EXACTLY to use an Abstract Class? Java & Kotlin Interfaces vs Abstract Classes

Описание к видео Programming: When EXACTLY to use an Abstract Class? Java & Kotlin Interfaces vs Abstract Classes

A viewer asked a question about why I preferred to use an Abstract Class over an Interface in an older video on the Open/Closed Principle, and I thought I would use this opportunity to explain exactly why I think yuo should use an Abstract Class over an Interface. Although the original video was about a Java example, you can apply this same principle to Kotlin. Just be aware that Kotlin also has Extension Functions, which are often a great substitute for Abstract Classes!

Follow the wiseAss Community:
  / wiseassbrand  
  / wiseassblog  
  / wiseass301  
http://wiseassblog.com/
  / ryan-kay-.  .

Support wiseAss here:
https://www.paypal.me/ryanmkay

Комментарии

Информация по комментариям в разработке