Sams Teach Yourself C in 21 Days

(singke) #1

BONUS DAY 3


BONUS WEEK


Working with C++ Classes


and Objects


Yesterday you were told that classes were the key to object-oriented program-
ming and thus C++ programming. Today you will cover a lot of ground with
C++. Specifically, today you will learn


  • What a class is

  • What objects are

  • How to instantiate an object

  • How functions and data are used within classes

  • When to use constructors and destructors

  • How to work with classes as data members

  • About inheritance and how to apply it

  • What to do to learn even more about C++


38 448201x-Bonus3 8/13/02 11:19 AM Page 665

Free download pdf