Java Programming

 

     

 

Monday, May 4th

 

Remember all lessons are now posted on Canvas. Submit all work to Canvas

Section 7 Lesson 1: Classes, Objects and Methods Vocabulary:

- A template used for making Java objects.
- An optional keyword used to access the members and methods of a class.
- An instance of a class.
- The operator used to create an instance of a class.
- A built-in function of the Java VM that frees memory as objects are no longer needed or referenced.
- A method that changes the state of an object.
- A method that returns information about an object back to the calling program.
- A procedure (changes the state of an object) or function (returns information about an object) that is encapsulated as part of a class.
- A verb used to describe the act of creating a class object using the keyword new.
- The process of assigning a default value to a variable. An object reference that has not been instantiated.
- An object reference that has not been instantiated.
- An optional method that is called just before an object is removed by the garbage collector.
- The name of a variable that is associated with an object.
- A special method used to create an instance of a class.

Begin work on the7 Lesson 1: Classes, Objects and Methods practice.

4, 5 and 6 - Create the Student class and StudentDriver class. Assume GPA is Quality points divided by credits. Ask the user if they would like to enter a new student and then prompt for the name, credits and quality points. Then print out the information entered with the calculated GPA.

 

Homework

Be Safe
 

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.