cs246-s11-001-june14

cs246-s11-001-june14 - CS 246 (Spring 2011) Section 1...

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

View Full Document Right Arrow Icon
CS 246 (Spring 2011) – Section 1 Tuesday 14 June Introduction to Objects
Background image of page 1

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

View Full DocumentRight Arrow Icon
CS 246 (Spring 2011) - Section 001 - Tuesday 14 June 2 Today's Agenda Some notes from last class Introduction to objects Assignment 3 questions
Background image of page 2
CS 246 (Spring 2011) - Section 001 - Tuesday 14 June 3 A few notes from last class Some comments have been posted to the course website (under Lecture Summaries) Overloading example #1 char c = 'a'; int i = 3; cout << &c  Overloading example #2  int f (int a, int b) { return a + b; } int f (int a) { int b = 2; return a + b; } f(3);
Background image of page 3

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

View Full DocumentRight Arrow Icon
CS 246 (Spring 2011) - Section 001 - Tuesday 14 June 4 2.18 Object Object : A logical organization of related data together with a set of operations to manipulate this data A struct allowing routine members A first example to illustrate and motivate objects A record is maintained for each student by the Registrar's office, storing their name, student number, and address. Each student is enrolled in at most six courses per term and can have at most ten co-op interviews.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/08/2011 for the course CS 246 taught by Professor Wormer during the Spring '08 term at Waterloo.

Page1 / 8

cs246-s11-001-june14 - CS 246 (Spring 2011) Section 1...

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

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