Introduction to Object-oriented Programming with C++The trend in programming design is moving towards an object-oriented approach. This is due to many influences in the evolution of software and hardware. As many systems become graphically interfaced and the demand for "easier-to-use" software increases, the program complexity expands dramatically. A solution to the complexity of programs is to develop them using an approach resembling the real-life relationship of objects. The traditional structured approach to programming is limited through its treatment of data and actions as distinct entities. By dealing with data and instructions as interwoven items, the ability to develop reusable code is enhanced. Object-oriented programming in C++ requires an understanding of encapsulation of data (classes), polymorphism (overloading), and inheritance of classes. |
Contents
An Introduction to C++ | 1 |
by Anita Millspaugh CHAPTER 1 An Introduction to C++ | 2 |
Basic Data Types and Structures | 19 |
Copyright | |
16 other sections not shown
Common terms and phrases
account number amount ANSWERS assignment operators binary operators binary search braces bsearch bytes Calculate called cChoice chapter char stName character array cin.getline condition conio.h constructor contain cout cPtr create data type declared decrement default delete destructor endl Enter escape sequence example executed false fAmount fAmountPtr fBalance float fPrice fPtr fstream.h fTaxRate gotoxy Hayley Office Supplies header file iCount include iostream.h increment indirect value initialized input int iNumber int iQuantity integer iNum iNum1 iNum2 iNum3 iNumOptions iPtr key field last name loop menu program MenuItem multidimensional array multiple null character number of characters object ofstream option output pointer pointer variable qsort relational operators return type screen selected SELF-TEST semicolon setprecision setw sizeof specified strcat strcmp strcpy string string literal struct structure subscript switch statement tested titles and column void main void ObtainData void Run Write a program ZIP Code