Thompson Rivers University
Category Interface
Assignment 2 Product - SM 2025An interface in Java is like a promise or a blueprint. It shows the names of methods and constants that a class must include, but it does not show how those methods do their work. When a class implements the interface, it agrees to fill in its own code for each method exactly as the interface defined. This way, different classes can share the same rules while still doing things their own way.
Members only
Keep reading this lesson
You've reached the end of the free preview. Unlock the rest of this lesson plus 54 more lessons in Thompson Rivers University.
- Unlimited coding questions
- Unlimited access to all classroom material
- Weekly live call for questions and guidance
- 3,000 AI tutor tokens / month
- Personal SQL database (3 MB)
- Progress tracking
Cancel any time.