
C++ For Java Programmers / Edition 1
by Timothy A. BuddView All Available Formats & Editions
ISBN-10: 0201612461
ISBN-13: 9780201612462
Pub. Date: 03/23/1999
Publisher: Pearson
In C++ for Java Programmers, the student gets an introduction to C++ that enlists their Java programming skills to get them comfortably programming in C++. This title is an appropriate supplement for any upper level course in which students are required to program in C++, or for anyone with experience in Java who is interested in an introduction to C++. The/b>
Overview
In C++ for Java Programmers, the student gets an introduction to C++ that enlists their Java programming skills to get them comfortably programming in C++. This title is an appropriate supplement for any upper level course in which students are required to program in C++, or for anyone with experience in Java who is interested in an introduction to C++. The text first walks the Java programmer through features controlled by the Java language but left to the programmer in C++ (e.g., the use of pointers, controlling memory management). It then builds upon their Java experience to teach language features that are slightly different (e.g., the structure of a class definition, polymorphism). Characteristics of C++ that have no correlation in Java are then presented.
Features
- "Test Your Understanding" questions at the end of each chapter
- Four chapter-long case studies
- walked-through examples of C++ language features
- A price point and length that makes this an ideal title for students who need to learn C++ for their coursework
0201612461B04062001
Product Details
- ISBN-13:
- 9780201612462
- Publisher:
- Pearson
- Publication date:
- 03/23/1999
- Edition description:
- New Edition
- Pages:
- 290
- Product dimensions:
- 7.50(w) x 9.10(h) x 0.70(d)
Table of Contents
1. Basic Philosophical Differences.The Language C.
The Development of C++.
The Legacy Problem.
The Language Java.
The Better Language.
Further Reading.
2. Fundamental Data Types.
Integers.
Floating Point Values.
Enumerated Values.
The Void Type.
Arrays.
Structures and Unions.
Object Values.
Functions.
3. Pointers and References.
Java Pointers.
Pointers on Pointers.
The Address-of Operator.
Pointers to Simple Values.
Pointers to Structures.
Pointers to Arrays.
References.
4. Memory Management.
The Memory Model.
Stack-Resident Memory Values.
Heap-Resident Memory Values.
5. Class Definition.
Obvious Similarities and Minor Differences.
Separation of Class and Implementation.
Forward References.
Constructors and Initialization.
The Orthodox Canonical Class Form.
Visibility Modifiers.
Inner Classes versus Nested Classes.
Static Initialization.
Final Classes.
6. Polymorphism.
Virtual and Nonvirtual Overriding.
Abstract Classes.
Downcasting (Reverse Polymorphism).
Name Resolution.
A Forest, Not a Tree.
Virtual Destructors.
Private Inheritance.
Inheritance and Arrays.
Overloading.
7. Operator Overloading.
Overloaded Functions or Methods.
The Simple Binary Operators.
The Comparison Operators.
The Increment and Decrement Operators.
The Shift Operators.
The Assignment Operator.
The Compound Assignment Operators.
The Subscript Operator.
The Parenthesis Operator.
The Address-of Operator.
The Logical Connectives.
The Comma Operator.
The Arrow Operator.
Pointers to Members and Pointers to Member Functions.
Conversion Operators.
Memory Management Operators.
Disallowing Operations.
Implicit Functions and Invocations.
8. Characters and Strings.
Characters and Literals Strings.
Constant and Mutable Values.
The String Data Type.
Example ProgramSplit a Line into Words.
9. Templates and Containers.
Template Classes.
Template Functions.
The Standard Template Library.
10. Input/Output.
The stdio Library.
The Stream I/O Facility.
An Example Program.
11. Exception Handling.
Flags and Return Codes.
The Assertion Library.
The setjmp and longjmp Facility.
Signals.
Exception Handling.
12. Features Found Only In C++.
Global Variables.
The Preprocessor.
typedef Statement.
The const Keyword.
Default Arguments.
Friends.
Name Spaces.
Multiple Inheritance.
goto Statement.
13. Features Found Only in Java.
Wrapper Classes.
Interfaces.
Inline Classes.
Threads.
Reflection.
14. Case Study: Fractions.
Classes.
Constructors.
Behavior.
Input and Output Streams.
15. Case Study: Containers.
Shortest Path Problem Graph.
A Concordance.
16. Case Study: A Card Game.
The Class Card.
Data and View Classes.
The Game.
Card PilesInheritance in Action.
Playing the Polymorphic Game.
The Graphical User Interface.
17. Case Study: Combining Separate Classes.
Appendix: Include Files.
Input and Output.
Diagnostics.
Strings.
STL Containers.
STL Utility Routines.
Numeric Support.
Run-Time Support.
Miscellaneous.
Customer Reviews
Average Review: