NOTE THE CHANGE IN SEQUENCE!
Complete Section 7 Lesson 4: Understanding Inheritance slides
Complete Section 7 Lesson 4: Understanding Inheritance vocabulary
Complete work on Section 7 Lesson 4: Understanding Inheritance practice problems.
For problem #1 run the program and then explain what is meant by deprecated code. What class in this code is deprecated and why? Hint - look at the code that is crossed out.
Complete Section 7 Lesson 4: Inheritance vocabulary:
- When there is no access modifier. Same access as public, except not visible to other packages.
-
The keywords used to declare a class, method, or variable as public, private, or protected. Default is when there is no access modifier.
-
Classes that are more specific subsets of other classes and that inherit methods and fields from more general classes.
-
A keyword in Java that allows you to explicitly declare the superclass of the current class.
-
A programming philosophy that promotes protecting data and hiding implementation in order to preserve the integrity of data and methods.
-
Visible only to the class where it is declared.
-
A structure that categorizes and organizes relationships among ideas, concepts of things with the most general or all-encompassing component at the top and the more specific, or component with the narrowest scope, at the bottom.
-
Visible to all classes.
-
Classes that pass down their methods to more specialized classes.
-
The concept in object-oriented programming that allows classes to gain methods and data by extending another classes fields and methods.
-
Visible to the package where it is declared and to subclasses in other packages.
-
A standardized language for modeling systems and structures in programming.
-
A keyword that allows subclasses to access methods, data, and constructors from their parent class.
-
A helpful term used to conceptualize the relationships among nodes or leaves in an inheritance