COMP125 Lecture Notes - Lecture 1: Primitive Data Type, Pseudocode, Instance Variable

118 views13 pages
Department
Course
Professor

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.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents