Java Programming

 

      

 

Monday, May 18th

 

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

 

 

Homework

Begin reviewing for the final exam.
Homework: Begin working on your notes page - one page both sides, which can be used on the final exam. The final exam will cover sections 1-7.

 

What

In this lesson, you will learn how to:
•Recognize the correct general form of a class
• Create an object of a class
• Describe object references
• Create methods that compile with no errors
• Return a value from a method
• Use parameters in a method

 

Why

Class templates are the foundation of the Java language. Understanding how to create a class with various methods will be essential to becoming a good Java programmer. Knowing how to instantiate an object and compare it to other objects is critical to learning to use and work with Java data types.

 

How

By completing the slides, quiz and practice exercises.