1/9
These flashcards cover key concepts related to object-oriented design and interfaces in Java programming.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Interface
A collection of abstract methods and constants in Java that a class will implement.
Abstract Method
A method header without a method body, usually marked with the keyword 'abstract'.
Doable
An example of a Java interface containing abstract methods like doThis() and doThat().
Instantiation
The process of creating an instance of a class, which cannot be done with an interface.
Comparable Interface
An interface that contains the abstract method compareTo, used to compare two objects.
Iterator Interface
An interface providing methods for processing a collection of objects, including hasNext(), next(), and remove().
Iterable Interface
An interface that provides a means to obtain an Iterator object.
Enumerated Type (enum)
A special kind of class defining a new data type with a fixed set of possible values.
Season Enum
An example of an enumerated type in Java, defining seasons with associated months.
Static Method values()
A method in an enumerated type that returns a list of all possible values for that type.