1/9
These flashcards cover key terms and concepts related to inheritance and polymorphism in Java as discussed in the lecture notes.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Inheritance
A mechanism in object-oriented programming where one class (subclass) derives properties and behaviors (methods) from another class (superclass).
Polymorphism
The ability of different objects to respond, each in its own way, to identical messages or method calls; determined at runtime based on the object's dynamic type.
Abstract Class
A class that cannot be instantiated on its own and is meant to be a base class; it can contain abstract methods that must be implemented by derived classes.
Protected Access
An access modifier that allows visibility within its own class, subclasses, and within the same package.
Access Modifiers
Keywords in programming that set the accessibility of classes, methods, and other members; includes public, private, protected, and package.
Dynamic Type
The type of an object as determined at runtime, which can differ from its static type as specified during declaration.
Abstract Method
A method declared without an implementation in an abstract class; it must be implemented by any non-abstract subclass.
VectorStack
A class that creates a stack based on a vector structure, specifically designed to implement stack behavior.
Superclass
The class from which another class (subclass) inherits properties and methods.
Subclass
A class derived from another class (superclass) that inherits its behavior and can have additional features.