lec23March508

lec23March508 - Lecture 23 March 5, 2008 Review Each object...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Lecture 23 March 5, 2008 Review Each object belongs to a class All objects of a class have the same methods A class can be seen as a blueprint which describes the general behavior of a set of similar objects The class used to define an object can be thought of as the type of an object There are pre-built classes and objects whose methods you can use in your programs E.g. System.out A variable that points to an object to the class PrintStream println A method implemented (by someone else) Libraries come with the compiler Abstraction : We only need to know what the parameters are and what the function is supposed to do Review: Abstraction We dont need to think about its internal details in order to use it We can write complex software without having to know how some parts of it are implemented (we just use them as black- boxes) Review: Objects A variable: Either holds a primitive type or It holds a reference/pointer to an object...
View Full Document

This note was uploaded on 04/14/2008 for the course COMP 202 taught by Professor Verbrugge during the Winter '07 term at McGill.

Page1 / 13

lec23March508 - Lecture 23 March 5, 2008 Review Each object...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online