Rate this post

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:

Support wiseAss here:

Tag: abstract class vs interface java, Programming WTF, Programming, Software Development, Software, Java Abstract Class Tutorial, Java Interface Tutorial, Kotlin Abstract Class Tutorial, Kotlin Interface Tutorial, Abstraction, Abstract, Class, Interface, Java, Kotlin, Tutorial, abstract classes vs interfaces, When to use an Abstract class in Java

Xem thêm: https://chơigame247.vn/category/review

Nguồn: https://chơigame247.vn