CSC 123: Homework #1

Description

While Greenfoot is an excellent tool for learning Game Development, it still requires you to learn Java to build your game. You are going to learn the Java you need to create your game in three ways:

For this homework, you are going to provide the definition of several common programming terms and then write a small java function.

Assignment

Define each of the Java and/or Greenfoot terms below and describe a programming scenario where you would use the described term:

  1. Class
  2. Object
  3. Actor
  4. Parameter
  5. Compile
  6. Return type
  7. Void
  8. Function
  9. Method Implementation
  10. Method Call
  11. Method Invocation
  12. If statement
  13. Comment
  14. Greenfoot API Documentation
  15. Constructor
  16. If/else statement
  17. Instance variables (aka, fields)

Next, write a java function that will take any two integers (data type "int") as parameters and return the largest of the two.

Deliverables

Turn in your definitions and function to me via PolyLearn on or before Jan 21, 23:59:59.

Assessment

You need to complete *all* parts of this assignment to get any credit. You term definitions need to be correct and concise.