cs246-s11-001-june28

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

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

View Full Document Right Arrow Icon
CS 246 (Spring 2011) – Section 1 Tuesday 28 June UML and Separate Compilation
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 28 June 2 Today's Agenda Some tips for Assignment 4, Q1 Brief review of encapsulation and friends UML Separate compilation (introduction) Some tips for Assignment 4, Q2
Background image of page 2
CS 246 (Spring 2011) - Section 001 - Tuesday 28 June 3 Assignment 4, Question 1 Newsgroup: see my post about bit fields being reversed Union and bitfields You must use these Union reminder : the UTF8 union only stores one byte, but has six ways of 'interpreting' this byte Example Which Unicode character has the UTF-8 encoding of 0xd7 0x90 ?
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 28 June 4 Encapsulation and friends (review) What is meant by public and private ? What is a friend class ? class A; // what is this for? class B { int z; public: }; class A { int x, y; friend class B; // where to place? };
Background image of page 4
CS 246 (Spring 2011) - Section 001 - Tuesday 28 June 5 Encapsulation and friends (review) What is a friend routine ? class X; class Y { int a, b; friend void X::change(Y &yObj); }; class X { public: };
Background image of page 5

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 28 June 6 2.22.1 UML A graphical representation of a software system, with emphasis on object-oriented design Only show what is useful for the model The basic parts of a class representation
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 18

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

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

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