πŸ§‘β€πŸ’» Kotlin Object-Oriented Programming (OOP)

Kotlin supports OOP with classes, objects, inheritance, and interfaces. Let’s explore the basics!

πŸ“ Defining a Class & Creating an Object

Output will appear here...

πŸ“ Inheritance Example

Output will appear here...

πŸ“ Interfaces Example

Output will appear here...
πŸ’‘ Tip: Use open to allow classes to be inherited. Interfaces define contracts for classes to implement.