lec0121-ctors - Todays announcements: Course policies:

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

View Full Document Right Arrow Icon
Today’s announcements: Course policies: http://cs.illinois.edu/class/cs225 Email assistance (ews, svn, etc.): [email protected] Sections meet in Siebel 0224, NOT ARR. HW0 available, due 1/24 before lecture. MP1 available, due 1/25, 11:59p. Linux tutorials: 1/25, 7-9p, Siebel 0224 DYB (Siebel 2407): – Every Mon, 3-5p (Cinda) – Every Fri, 6-8p (Jack) Proficiency exam: 1/31, 7-10p, Siebel 2407
Background image of page 1

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

View Full DocumentRight Arrow Icon
Today’s plan: Ideas/concepts: Class definitions Class function implementation Constructors Clients OOP: C++ I E P
Background image of page 2
Our first class… class sphere{ }; #include “sphere.h” int main(){ sphere a; } 1. Upon command > g++ main.cpp does this code compile? 2. Upon command > ./a.out does it run? main.cpp sphere.h What surprises you about this code?
Background image of page 3

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

View Full DocumentRight Arrow Icon
class sphere{ public: sphere(); sphere(double r); void setRadius(double newRad); double getDiameter(); private: double theRadius; }; int main(){ }; sphere functionality: 1. Create a new one. 2.
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 01/26/2012 for the course CS CS 225 taught by Professor Heeren during the Spring '09 term at University of Illinois, Urbana Champaign.

Page1 / 9

lec0121-ctors - Todays announcements: Course policies:

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