COMP125 Lecture Notes - Lecture 1: Primitive Data Type, Pseudocode, Instance Variable
Document Summary
Parameter passing: inputting variables into a control structure. Scope: changes in scope are indicated by curly brackets. Signature mismatch: functions can only operate on parameters that are known. Computer code: source code, program in higher order languages, something you can write or read, source codes are compiled into binary files. Pseudocode: middle ground between the coder and computer, communicates commands. Using eclipse: double clicking on line numbers creates a break point, jumps pseudocode, green bug icon is a debug, use slow motion icon to navigate, command a, command i properly indents code. Classes and objects: java is an object-orientated programming language, classes are models of real world entities inside our programs, may have instance variables and methods. Adding instance variables: instance variables can be declared as in the following two examples, public int instancevar1, public string instancevar2, public return types are available to everyone.