Things to know2 - ThingstoknowC classesandobjects How to...

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

View Full Document Right Arrow Icon
Computer Science I - Martin Hardwick Lecture 1 -- 1 Things to know – C++ classes and objects How to define a class Definition in C++ .h file Implementation in C++ .cpp file Syntax of a class How to define data How to define member functions How to define the initializer function(s) How to define operator member functions (Lecture 22) Syntax of a member function The use of “::” notation Difference between member functions and regular functions with  respect to accessing member data Difference between private and public Data and “unsafe” functions in the private area Functions that are to be used by others in the public area Put and Get functions to set and access data in the public area
Background image of page 1

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

View Full Document Right Arrow Icon
Computer Science I - Martin Hardwick Lecture 1 -- 2 Things to know – Pass by reference/value Syntax used for pass by reference Why pass by reference is not necessary for arrays Why pass by value is more flexible in most situations Why global values are considered bad Look at the examples in Lecture 11 Quiz 6
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 7

Things to know2 - ThingstoknowC classesandobjects How to...

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

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