CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Skill 1 - Making and Modifying Programs

you will learn:

  • understand program statements
  • send messages to objects
  • understand arguments
  • using athlete objects
  • adding comments

A First Simple Program

  • Sending messages
  • one statement per line
  • athletes
  • arguments
  • nice and neat comments

Sequence

What did you learn?

Things to remember

When using objects:

  • object name, a dot, the function, parentheses: Sal.up()
  • use only the functions the objects understand: Sal.down() -> NO NO!
  • meaning of values inside parentheses depends on the function: Sal.up(1); Tracer.mark(2); etc.
  • objects must be declared before they can be used

Other things:

  • computer obeys instructions one after the other