Abstract Class vs Interface in Java & Kotlin: When to Use Each πŸ”

Learn the key differences between abstract classes and interfaces in Java and Kotlin, and discover the best scenarios to use an abstract class over an interface for cleaner, more maintainable code.

Abstract Class vs Interface in Java & Kotlin: When to Use Each πŸ”
Ryan Michael Kay
16.2K views β€’ Mar 6, 2019
Abstract Class vs Interface in Java & Kotlin: When to Use Each πŸ”

About this video

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:
https://www.instagram.com/wiseassbrand/
https://www.facebook.com/wiseassblog/
https://twitter.com/wiseass301
http://wiseassblog.com/
https://www.linkedin.com/in/ryan-kay-...

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

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

16.2K

Likes

686

Duration

7:38

Published

Mar 6, 2019

User Reviews

4.6
(3)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.