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.

Ryan Michael Kayβ€’16.2K viewsβ€’7:38

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

This video is tagged with the following topics. Click any tag to explore more related content and discover similar videos:

Tags help categorize content and make it easier to find related videos. Browse our collection to discover more content in these categories.

4.6

3 user reviews

Write a Review

0/1000 characters

User Reviews

0 reviews

Be the first to comment...

Video Information

Views
16.2K

Total views since publication

Likes
686

User likes and reactions

Duration
7:38

Video length

Published
Mar 6, 2019

Release date

Quality
hd

Video definition

Related Trending Topics

LIVE TRENDS

This video may be related to current global trending topics. Click any trend to explore more videos about what's hot right now!

THIS VIDEO IS TRENDING!

This video is currently trending in South Korea under the topic 'a'.

Share This Video

SOCIAL SHARE

Share this video with your friends and followers across all major social platforms including X (Twitter), Facebook, Youtube, Pinterest, VKontakte, and Odnoklassniki. Help spread the word about great content!