P
rogramming
I
n
C
++
Chapters
Introduction
Chapter 1 - Naming Conventions
Chapter 2 - Programming Misconceptions
Chapter 3 - Class
Chapter 4 - Function
Chapter 5 - Debugging
Chapter 6 - Arrays Versus Pointers
Chapter 7 - The Standard Template Library
Chapter 8 - String
Chapter 9 - Segmentation Fault
Chapter 10 - Layout of a Program
Chapter 11 - How to Program Efficiently
Chapter 12 - How to Write a Function Efficiently
Chapter 13 - Documentation
Chapter 14 - Can You Spot Bugs?
Chapter 15 - Programming Exercises
Chapter 15.1 - Exercise #1: Identify Groups on a Board
Chapter 15.2 - Exercise #2: The Game of Nim
Chapter 15.3 - Exercise #3: Solve The Eight Queens Puzzle
Chapter 15.4 - Exercise #4: Word Ladder Game
Chapter 15.5 - Exercise #5: A Random Maze Generator
Chapter 15.6 - Exercise #6: Solving Draught Puzzle
Chapter 16 - General Traps and Tips
Appendix A - C++ Keywords
Appendix B - Operator Precedence
Appendix C - Useful Functions
Appendix D - A List of Traps and Tips
Appendix E - Resources
Conclusion
Sections
3.1 - Private Versus Public Data Members
3.2 - Const Object and Const Member Function
3.3 - Friend Class and Friend Function
3.4 - Generic Class
3.5 - Traps and Tips
Author
Comment
Share
Chapter 3
Home
Class
Class
◀ Global Variables Versus Local Variables
▶ Private Versus Public Data Members
Amazon
C
lass
sits at the core of the object oriented programming paradigm. The way you compose your classes plays a critical role in the success of your program.
In this chapter we will be examining the main components of a class and analyze and compare where applicable.
The goal is after you finish reading and digesting this chapter you will be able to use classes more effectively!
◀ Global Variables Versus Local Variables
▶ Private Versus Public Data Members
f
Share
Questions? Let me know!