Java Programming

 

      

 

Friday, December 6th

 

Top 10 Free On-line Programs for Coding

Alice Game Project due today! Before submitting save the project as YourNameGameProject. Submit your project file to Google Classroom.

Anatomy of a Class - compare with the anatomy of an essay.
Class Name
Variables
Constructor - if no constructor is defined Java will create and use a default constructor - Class Name ( ) { }
Main Method - Act() method
Declared Methods

public class TurtleWorld extends World
{
/**
* Create the turtle world. Our world has a size
* of 560x460 cells, where every cell is just 1 pixel.
*/
public TurtleWorld()
{
super(600, 480, 1);
addObject(new Turtle(), 300, 240);
}
}

Section 3: Lesson 5 - Randomization and Constructors vocabulary:
- A technique that allows a class to use a method from another class or object. The dot between the class/object name and the method name indicates that the method comes from a different class or object.
- A special kind of method that is automatically executed whenever a new instance of the class is created.
- A keyword that indicates that a new object is being created.
- Symbols that compare two random values in a method.

Complete Section 3: Lesson 5 - Randomization and Constructors slides.
Complete Section 3: Lesson 5 - Randomization and Constructors practice and project.
Show these to your instructor for teacher check.

Section 3: Lesson 6 - Defining Methods vocabulary:
- A new method that a class didn't already possess; these methods are written in the class's source code below the act() method.

Complete Section 3: Lesson 6 - Defining Methods slides.
Complete Section 3: Lesson 6 - Defining Methods practice and project.
Show these to your instructor for teacher check.

 

Homework

Review Declaring Procedures and Control Statements and Functions

 

What

In this lesson, you will learn how to:
•How to download and install Greenfoot
• Describe the components of the Greenfoot interactive development environment
• Create an instance of a class
• Describe classes and subclasses
• Recognize Java syntax used to correctly create a subclass

 

Why

Learning to program, and learning programming concepts while creating a game can be fun. Using Greenfoot, you will learn basic Java programming techniques to create fun and interactive games.

 

How

By completing the slides, quiz and practice exercises.