Join Peggy Fisher for an in-depth discussion in this video Working with interfaces, part of Java Essential Training for Students.
- The next topic I want to talk about is interfaces.…An interface is like a contract between a class…and the outside world.…When a class implements an interface, it promises…to provide the behavior included by that interface.…Interfaces can also be used to store constants.…This section defines a simple interface…and explains the necessary changes for any class…that implements it.…As you've already learned, objects define their interaction…with the outside world through the public methods…used to get and set information.…
Methods form the object's interface with the outside world.…The keys on your keyboard, for example, are the interface…between you and the electrical wiring on the other side…of its casing, which connects it to the computer.…Also, the power button. When you press the power button…on your computer, it turns the computer on or off.…It's an interface.…Most interfaces are a group of related methods…with empty bodies.…Let's use a bicycle as an example.…A bicycle's behavior, if it's specified as an interface,…
- Getting started with parsing
- Reviewing data types
- Using decisions
- Creating user-defined methods
- Command-line debugging
- Exploring the Java API
- Creating and instantiating classes
- Working with interfaces
- Storing items with arrays
Skill Level Intermediate
1. Command Level Programming
2. Basics Review
4. Java API
5. Simulations and Algorithm Analysis
6. Classes and Objects
7. More on Classes
8. Data Structures
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.