1/10
These flashcards cover key vocabulary related to inheritance in object-oriented programming as discussed in the lecture.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Inheritance
A feature of object-oriented programming that allows a new class to inherit properties and methods from an existing class.
Superclass
The class whose properties and methods are inherited by another class.
Subclass
The class that inherits properties and methods from a superclass.
Derived Class
Another term for a subclass, which is based on the superclass.
Access Control
Rules that define the accessibility of classes, methods, and properties in object-oriented programming.
Public Access
Members declared public can be accessed from any code in the program.
Private Access
Members declared private can only be accessed within the same class.
Protected Access
Members declared protected can be accessed within the class and by derived classes.
Method Overriding
The ability of a derived class to provide a specific implementation of a method that is already defined in its superclass.
Constructor
A special method used to initialize objects of a class.
Composition
A design principle in programming where a class is composed of one or more objects of other classes.