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
wiseassblog.com/
/ ryan-kay-. .
Support wiseAss here:
www.paypal.me/ryanmkay
6 июл 2024