Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Day 20 - Interfaces

📚 What You'll Learn Today

  • What are interfaces?
  • Implementing interfaces
  • Multiple inheritance with interfaces
  • Default and static methods

🎯 Key Concepts

  • Interface: Contract for classes
  • Implements: Keyword to use interface
  • Default Method: Method with body in interface

📁 Files in This Day

  1. InterfaceDemo.java - Example of interface

🚀 How to Run

  1. Compile: javac InterfaceDemo.java
  2. Run: java InterfaceDemo

💡 Exercises

  1. Create an interface and implement it
  2. Use default methods

Next Day: Day 21 - Packages and Imports